Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / sync / test / test_http_bridge_factory.cc
blobf9ee2822b711913445d542cc1d95ef2d7085fe56
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.
5 #include "chrome/browser/sync/test/test_http_bridge_factory.h"
7 namespace browser_sync {
9 bool TestHttpBridge::MakeSynchronousPost(int* error_code,
10 int* response_code) {
11 return false;
14 int TestHttpBridge::GetResponseContentLength() const {
15 return 0;
18 const char* TestHttpBridge::GetResponseContent() const {
19 return 0;
22 const std::string TestHttpBridge::GetResponseHeaderValue(
23 const std::string &) const {
24 return std::string();
27 void TestHttpBridge::Abort() {
30 TestHttpBridgeFactory::TestHttpBridgeFactory() {}
32 TestHttpBridgeFactory::~TestHttpBridgeFactory() {}
34 void TestHttpBridgeFactory::Init(
35 const std::string& user_agent,
36 const syncer::BindToTrackerCallback& bind_to_tracker_callback) {}
38 syncer::HttpPostProviderInterface* TestHttpBridgeFactory::Create() {
39 return new TestHttpBridge();
42 void TestHttpBridgeFactory::Destroy(syncer::HttpPostProviderInterface* http) {
43 delete static_cast<TestHttpBridge*>(http);
46 } // namespace browser_sync