test_http_bridge_factory.cc revision d0247b1b59f9c528cb6df88b4f2b9afaf80d181e
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 "chrome/browser/sync/test/test_http_bridge_factory.h"
6
7namespace browser_sync {
8
9bool TestHttpBridge::MakeSynchronousPost(int* error_code,
10                                         int* response_code) {
11  return false;
12}
13
14int TestHttpBridge::GetResponseContentLength() const {
15  return 0;
16}
17
18const char* TestHttpBridge::GetResponseContent() const {
19  return 0;
20}
21
22const std::string TestHttpBridge::GetResponseHeaderValue(
23    const std::string &) const {
24  return std::string();
25}
26
27void TestHttpBridge::Abort() {
28}
29
30TestHttpBridgeFactory::TestHttpBridgeFactory() {}
31
32TestHttpBridgeFactory::~TestHttpBridgeFactory() {}
33
34void TestHttpBridgeFactory::Init(const std::string& user_agent) {}
35
36syncer::HttpPostProviderInterface* TestHttpBridgeFactory::Create() {
37  return new TestHttpBridge();
38}
39
40void TestHttpBridgeFactory::Destroy(syncer::HttpPostProviderInterface* http) {
41  delete static_cast<TestHttpBridge*>(http);
42}
43
44}  // namespace browser_sync
45