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

Unified Diff: sync/internal_api/public/test/fake_server_network_resources.h

Issue 115243007: Basic implementation of the Sync C++ fake server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/public/test/fake_server_network_resources.h
diff --git a/sync/internal_api/public/http_bridge_network_resources.h b/sync/internal_api/public/test/fake_server_network_resources.h
similarity index 64%
copy from sync/internal_api/public/http_bridge_network_resources.h
copy to sync/internal_api/public/test/fake_server_network_resources.h
index 06d8284ba5ccdef591f3a054b70bea7cb07199fc..d41727f4d81e422e53c2f474e184dffede453480 100644
--- a/sync/internal_api/public/http_bridge_network_resources.h
+++ b/sync/internal_api/public/test/fake_server_network_resources.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_NETWORK_RESOURCES_H_
-#define SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_NETWORK_RESOURCES_H_
+#ifndef SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SERVER_NETWORK_RESOURCES_H_
+#define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SERVER_NETWORK_RESOURCES_H_
#include "base/memory/scoped_ptr.h"
#include "sync/base/sync_export.h"
@@ -16,20 +16,24 @@ class URLRequestContextGetter;
namespace syncer {
-class CancelationSignal;
+class FakeServer;
class HttpPostProviderFactory;
-class SYNC_EXPORT HttpBridgeNetworkResources : public NetworkResources {
+class FakeServerNetworkResources : public NetworkResources {
public:
- virtual ~HttpBridgeNetworkResources();
+ FakeServerNetworkResources(FakeServer* fake_server);
+ virtual ~FakeServerNetworkResources();
// NetworkResources
virtual scoped_ptr<HttpPostProviderFactory> GetHttpPostProviderFactory(
net::URLRequestContextGetter* baseline_context_getter,
const NetworkTimeUpdateCallback& network_time_update_callback,
CancelationSignal* cancelation_signal) OVERRIDE;
+
+ private:
+ FakeServer* const fake_server_;
};
} // namespace syncer
-#endif // SYNC_INTERNAL_API_PUBLIC_HTTP_BRIDGE_NETWORK_RESOURCES_H_
+#endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SERVER_NETWORK_RESOURCES_H_

Powered by Google App Engine
This is Rietveld 408576698