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 |