1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "components/browser_sync/test_http_bridge_factory.h" 6 7 namespace browser_sync { 8 MakeSynchronousPost(int * net_error_code,int * http_status_code)9bool TestHttpBridge::MakeSynchronousPost(int* net_error_code, 10 int* http_status_code) { 11 return false; 12 } 13 GetResponseContentLength() const14int TestHttpBridge::GetResponseContentLength() const { 15 return 0; 16 } 17 GetResponseContent() const18const char* TestHttpBridge::GetResponseContent() const { 19 return nullptr; 20 } 21 GetResponseHeaderValue(const std::string &) const22const std::string TestHttpBridge::GetResponseHeaderValue( 23 const std::string&) const { 24 return std::string(); 25 } 26 Abort()27void TestHttpBridge::Abort() {} 28 TestHttpBridgeFactory()29TestHttpBridgeFactory::TestHttpBridgeFactory() {} 30 ~TestHttpBridgeFactory()31TestHttpBridgeFactory::~TestHttpBridgeFactory() {} 32 Create()33syncer::HttpPostProviderInterface* TestHttpBridgeFactory::Create() { 34 return new TestHttpBridge(); 35 } 36 Destroy(syncer::HttpPostProviderInterface * http)37void TestHttpBridgeFactory::Destroy(syncer::HttpPostProviderInterface* http) { 38 delete static_cast<TestHttpBridge*>(http); 39 } 40 41 } // namespace browser_sync 42