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

Unified Diff: components/browser_sync/browser/test_http_bridge_factory.h

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 side-by-side diff with in-line comments
Download patch
Index: components/browser_sync/browser/test_http_bridge_factory.h
diff --git a/components/browser_sync/browser/test_http_bridge_factory.h b/components/browser_sync/browser/test_http_bridge_factory.h
deleted file mode 100644
index efee6cae65e835f189c106d1d6ef4d3bef3cec82..0000000000000000000000000000000000000000
--- a/components/browser_sync/browser/test_http_bridge_factory.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_BROWSER_SYNC_BROWSER_TEST_HTTP_BRIDGE_FACTORY_H_
-#define COMPONENTS_BROWSER_SYNC_BROWSER_TEST_HTTP_BRIDGE_FACTORY_H_
-
-#include "base/compiler_specific.h"
-#include "components/sync/core/http_post_provider_factory.h"
-#include "components/sync/core/http_post_provider_interface.h"
-
-namespace browser_sync {
-
-class TestHttpBridge : public syncer::HttpPostProviderInterface {
- public:
- // Begin syncer::HttpPostProviderInterface implementation:
- void SetExtraRequestHeaders(const char* headers) override {}
-
- void SetURL(const char* url, int port) override {}
-
- void SetPostPayload(const char* content_type,
- int content_length,
- const char* content) override {}
-
- bool MakeSynchronousPost(int* error_code, int* response_code) override;
-
- int GetResponseContentLength() const override;
-
- const char* GetResponseContent() const override;
-
- const std::string GetResponseHeaderValue(const std::string&) const override;
-
- void Abort() override;
- // End syncer::HttpPostProviderInterface implementation.
-};
-
-class TestHttpBridgeFactory : public syncer::HttpPostProviderFactory {
- public:
- TestHttpBridgeFactory();
- ~TestHttpBridgeFactory() override;
-
- // syncer::HttpPostProviderFactory:
- void Init(
- const std::string& user_agent,
- const syncer::BindToTrackerCallback& bind_to_tracker_callback) override;
- syncer::HttpPostProviderInterface* Create() override;
- void Destroy(syncer::HttpPostProviderInterface* http) override;
-};
-
-} // namespace browser_sync
-
-#endif // COMPONENTS_BROWSER_SYNC_BROWSER_TEST_HTTP_BRIDGE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698