Coverage for /Syzygy/kasko/http_agent_impl.h

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
0.0%0017.C++source

Line-by-line coverage:

   1    :  // Copyright 2014 Google Inc. All Rights Reserved.
   2    :  //
   3    :  // Licensed under the Apache License, Version 2.0 (the "License");
   4    :  // you may not use this file except in compliance with the License.
   5    :  // You may obtain a copy of the License at
   6    :  //
   7    :  //     http://www.apache.org/licenses/LICENSE-2.0
   8    :  //
   9    :  // Unless required by applicable law or agreed to in writing, software
  10    :  // distributed under the License is distributed on an "AS IS" BASIS,
  11    :  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12    :  // See the License for the specific language governing permissions and
  13    :  // limitations under the License.
  14    :  
  15    :  #ifndef SYZYGY_KASKO_HTTP_AGENT_IMPL_H_
  16    :  #define SYZYGY_KASKO_HTTP_AGENT_IMPL_H_
  17    :  
  18    :  #include "base/strings/string16.h"
  19    :  #include "syzygy/kasko/http_agent.h"
  20    :  
  21  m :  namespace kasko {
  22    :  
  23    :  // Implements HttpAgent using WinHttp. Respects the user proxy settings if any.
  24  m :  class HttpAgentImpl : public HttpAgent {
  25  m :   public:
  26    :    // Constructs an HttpAgentImpl.
  27    :    // @param product_name The product name to include in the User-Agent header.
  28    :    // @param product_version The product version to include in the User-Agent
  29    :    //     header.
  30  m :    HttpAgentImpl(const base::string16& product_name,
  31  m :                  const base::string16& product_version);
  32  m :    ~HttpAgentImpl() override;
  33    :  
  34    :    // HttpAgent implementation
  35  m :    virtual scoped_ptr<HttpResponse> Post(const base::string16& host,
  36  m :                                          uint16_t port,
  37  m :                                          const base::string16& path,
  38  m :                                          bool secure,
  39  m :                                          const base::string16& extra_headers,
  40  m :                                          const std::string& body) override;
  41    :  
  42  m :   private:
  43  m :    base::string16 user_agent_;
  44    :  
  45  m :    DISALLOW_COPY_AND_ASSIGN(HttpAgentImpl);
  46  m :  };
  47    :  
  48  m :  }  // namespace kasko
  49    :  
  50    :  #endif  // SYZYGY_KASKO_HTTP_AGENT_IMPL_H_

Coverage information generated Thu Jan 14 17:40:38 2016.