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

Unified Diff: components/sync/test/fake_server/fake_server_http_post_provider.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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/sync/test/fake_server/fake_server_http_post_provider.cc
diff --git a/sync/test/fake_server/fake_server_http_post_provider.cc b/components/sync/test/fake_server/fake_server_http_post_provider.cc
similarity index 82%
rename from sync/test/fake_server/fake_server_http_post_provider.cc
rename to components/sync/test/fake_server/fake_server_http_post_provider.cc
index 55666794deac507d08ee6f6efedee3de882ec905..9c03240704c8243c2b3efec24e56ae6221febfd3 100644
--- a/sync/test/fake_server/fake_server_http_post_provider.cc
+++ b/components/sync/test/fake_server/fake_server_http_post_provider.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sync/test/fake_server/fake_server_http_post_provider.h"
+#include "components/sync/test/fake_server/fake_server_http_post_provider.h"
#include <string>
@@ -12,7 +12,7 @@
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner.h"
#include "base/synchronization/waitable_event.h"
-#include "sync/test/fake_server/fake_server.h"
+#include "components/sync/test/fake_server/fake_server.h"
using syncer::HttpPostProviderInterface;
@@ -21,10 +21,10 @@ namespace fake_server {
FakeServerHttpPostProviderFactory::FakeServerHttpPostProviderFactory(
const base::WeakPtr<FakeServer>& fake_server,
scoped_refptr<base::SequencedTaskRunner> fake_server_task_runner)
- : fake_server_(fake_server),
- fake_server_task_runner_(fake_server_task_runner) { }
+ : fake_server_(fake_server),
+ fake_server_task_runner_(fake_server_task_runner) {}
-FakeServerHttpPostProviderFactory::~FakeServerHttpPostProviderFactory() { }
+FakeServerHttpPostProviderFactory::~FakeServerHttpPostProviderFactory() {}
void FakeServerHttpPostProviderFactory::Init(
const std::string& user_agent,
@@ -45,10 +45,10 @@ void FakeServerHttpPostProviderFactory::Destroy(
FakeServerHttpPostProvider::FakeServerHttpPostProvider(
const base::WeakPtr<FakeServer>& fake_server,
scoped_refptr<base::SequencedTaskRunner> fake_server_task_runner)
- : fake_server_(fake_server),
- fake_server_task_runner_(fake_server_task_runner) { }
+ : fake_server_(fake_server),
+ fake_server_task_runner_(fake_server_task_runner) {}
-FakeServerHttpPostProvider::~FakeServerHttpPostProvider() { }
+FakeServerHttpPostProvider::~FakeServerHttpPostProvider() {}
void FakeServerHttpPostProvider::SetExtraRequestHeaders(const char* headers) {
// TODO(pvalenzuela): Add assertions on this value.
@@ -82,14 +82,10 @@ bool FakeServerHttpPostProvider::MakeSynchronousPost(int* error_code,
base::Unretained(&post_complete));
bool result = fake_server_task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&FakeServer::HandleCommand,
- fake_server_,
- base::ConstRef(request_content_),
- base::ConstRef(signal_closure),
- &post_error_code,
- &post_response_code,
- &post_response));
+ FROM_HERE, base::Bind(&FakeServer::HandleCommand, fake_server_,
+ base::ConstRef(request_content_),
+ base::ConstRef(signal_closure), &post_error_code,
+ &post_response_code, &post_response));
if (!result)
return false;
@@ -117,7 +113,6 @@ const std::string FakeServerHttpPostProvider::GetResponseHeaderValue(
return std::string();
}
-void FakeServerHttpPostProvider::Abort() {
-}
+void FakeServerHttpPostProvider::Abort() {}
} // namespace fake_server

Powered by Google App Engine
This is Rietveld 408576698