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

Side by Side Diff: sync/test/fake_server/fake_server_network_resources.cc

Issue 115243007: Basic implementation of the Sync C++ fake server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move files Created 6 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "sync/internal_api/public/http_bridge_network_resources.h" 5 #include "sync/test/fake_server/fake_server_network_resources.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "net/url_request/url_request_context_getter.h"
9 #include "sync/internal_api/public/base/cancelation_signal.h" 8 #include "sync/internal_api/public/base/cancelation_signal.h"
10 #include "sync/internal_api/public/http_bridge.h"
11 #include "sync/internal_api/public/http_post_provider_factory.h" 9 #include "sync/internal_api/public/http_post_provider_factory.h"
12 #include "sync/internal_api/public/network_time_update_callback.h" 10 #include "sync/internal_api/public/network_time_update_callback.h"
11 #include "sync/test/fake_server/fake_server.h"
12 #include "sync/test/fake_server/fake_server_http_post_provider.h"
13 13
14 namespace syncer { 14 namespace syncer {
15 15
16 HttpBridgeNetworkResources::~HttpBridgeNetworkResources() {} 16 FakeServerNetworkResources::FakeServerNetworkResources(FakeServer* fake_server)
17 : fake_server_(fake_server) { }
18
19 FakeServerNetworkResources::~FakeServerNetworkResources() {}
17 20
18 scoped_ptr<HttpPostProviderFactory> 21 scoped_ptr<HttpPostProviderFactory>
19 HttpBridgeNetworkResources::GetHttpPostProviderFactory( 22 FakeServerNetworkResources::GetHttpPostProviderFactory(
20 net::URLRequestContextGetter* baseline_context_getter, 23 net::URLRequestContextGetter* baseline_context_getter,
21 const NetworkTimeUpdateCallback& network_time_update_callback, 24 const NetworkTimeUpdateCallback& network_time_update_callback,
22 CancelationSignal* cancelation_signal) { 25 CancelationSignal* cancelation_signal) {
23 return make_scoped_ptr<HttpPostProviderFactory>( 26 return make_scoped_ptr<HttpPostProviderFactory>(
24 new HttpBridgeFactory(baseline_context_getter, 27 new FakeServerHttpPostProviderFactory(fake_server_));
25 network_time_update_callback,
26 cancelation_signal));
27 } 28 }
28 29
29 } // namespace syncer 30 } // namespace syncer
OLDNEW
« sync/test/fake_server/fake_server.cc ('K') | « sync/test/fake_server/fake_server_network_resources.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698