Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: components/browser_sync/test_http_bridge_factory.cc

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + rebase. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/browser_sync/browser/test_http_bridge_factory.h" 5 #include "components/browser_sync/test_http_bridge_factory.h"
6 6
7 namespace browser_sync { 7 namespace browser_sync {
8 8
9 bool TestHttpBridge::MakeSynchronousPost(int* error_code, 9 bool TestHttpBridge::MakeSynchronousPost(int* error_code, int* response_code) {
10 int* response_code) {
11 return false; 10 return false;
12 } 11 }
13 12
14 int TestHttpBridge::GetResponseContentLength() const { 13 int TestHttpBridge::GetResponseContentLength() const {
15 return 0; 14 return 0;
16 } 15 }
17 16
18 const char* TestHttpBridge::GetResponseContent() const { 17 const char* TestHttpBridge::GetResponseContent() const {
19 return 0; 18 return 0;
20 } 19 }
21 20
22 const std::string TestHttpBridge::GetResponseHeaderValue( 21 const std::string TestHttpBridge::GetResponseHeaderValue(
23 const std::string &) const { 22 const std::string&) const {
24 return std::string(); 23 return std::string();
25 } 24 }
26 25
27 void TestHttpBridge::Abort() { 26 void TestHttpBridge::Abort() {}
28 }
29 27
30 TestHttpBridgeFactory::TestHttpBridgeFactory() {} 28 TestHttpBridgeFactory::TestHttpBridgeFactory() {}
31 29
32 TestHttpBridgeFactory::~TestHttpBridgeFactory() {} 30 TestHttpBridgeFactory::~TestHttpBridgeFactory() {}
33 31
34 void TestHttpBridgeFactory::Init( 32 void TestHttpBridgeFactory::Init(
35 const std::string& user_agent, 33 const std::string& user_agent,
36 const syncer::BindToTrackerCallback& bind_to_tracker_callback) {} 34 const syncer::BindToTrackerCallback& bind_to_tracker_callback) {}
37 35
38 syncer::HttpPostProviderInterface* TestHttpBridgeFactory::Create() { 36 syncer::HttpPostProviderInterface* TestHttpBridgeFactory::Create() {
39 return new TestHttpBridge(); 37 return new TestHttpBridge();
40 } 38 }
41 39
42 void TestHttpBridgeFactory::Destroy(syncer::HttpPostProviderInterface* http) { 40 void TestHttpBridgeFactory::Destroy(syncer::HttpPostProviderInterface* http) {
43 delete static_cast<TestHttpBridge*>(http); 41 delete static_cast<TestHttpBridge*>(http);
44 } 42 }
45 43
46 } // namespace browser_sync 44 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/browser_sync/test_http_bridge_factory.h ('k') | components/browser_sync/test_profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698