Coverage for /Syzygy/kasko/http_agent_impl.h

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
0.0%0018.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/macros.h"
  19    :  #include "base/strings/string16.h"
  20    :  #include "syzygy/kasko/http_agent.h"
  21    :  
  22  m :  namespace kasko {
  23    :  
  24    :  // Implements HttpAgent using WinHttp. Respects the user proxy settings if any.
  25  m :  class HttpAgentImpl : public HttpAgent {
  26  m :   public:
  27    :    // Constructs an HttpAgentImpl.
  28    :    // @param product_name The product name to include in the User-Agent header.
  29    :    // @param product_version The product version to include in the User-Agent
  30    :    //     header.
  31  m :    HttpAgentImpl(const base::string16& product_name,
  32  m :                  const base::string16& product_version);
  33  m :    ~HttpAgentImpl() override;
  34    :  
  35    :    // HttpAgent implementation
  36  m :    virtual std::unique_ptr<HttpResponse> Post(
  37  m :        const base::string16& host,
  38  m :        uint16_t port,
  39  m :        const base::string16& path,
  40  m :        bool secure,
  41  m :        const base::string16& extra_headers,
  42  m :        const std::string& body) override;
  43    :  
  44  m :   private:
  45  m :    base::string16 user_agent_;
  46    :  
  47  m :    DISALLOW_COPY_AND_ASSIGN(HttpAgentImpl);
  48  m :  };
  49    :  
  50  m :  }  // namespace kasko
  51    :  
  52    :  #endif  // SYZYGY_KASKO_HTTP_AGENT_IMPL_H_

Coverage information generated Fri Jul 29 11:00:21 2016.