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

Unified Diff: components/sync/driver/glue/ui_model_worker_unittest.cc

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: 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
« no previous file with comments | « components/sync/driver/glue/ui_model_worker.cc ('k') | components/sync/driver/invalidation_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/glue/ui_model_worker_unittest.cc
diff --git a/components/sync/driver/glue/ui_model_worker_unittest.cc b/components/sync/driver/glue/ui_model_worker_unittest.cc
index 7ad15d960bb061a9738fd703a27644d97e4be73a..1c4d828a97cdced8cb69279bc9039c76658f90e1 100644
--- a/components/sync/driver/glue/ui_model_worker_unittest.cc
+++ b/components/sync/driver/glue/ui_model_worker_unittest.cc
@@ -19,8 +19,7 @@
#include "base/threading/thread_task_runner_handle.h"
#include "testing/gtest/include/gtest/gtest.h"
-using browser_sync::UIModelWorker;
-using syncer::SyncerError;
+namespace syncer {
class UIModelWorkerVisitor {
public:
@@ -28,11 +27,11 @@ class UIModelWorkerVisitor {
: quit_loop_when_run_(quit_loop), was_run_(was_run) {}
virtual ~UIModelWorkerVisitor() {}
- virtual syncer::SyncerError DoWork() {
+ virtual SyncerError DoWork() {
was_run_->Signal();
if (quit_loop_when_run_)
base::MessageLoop::current()->QuitWhenIdle();
- return syncer::SYNCER_OK;
+ return SYNCER_OK;
}
private:
@@ -49,7 +48,7 @@ class Syncer {
void SyncShare(UIModelWorkerVisitor* visitor) {
// We wait until the callback is executed. So it is safe to use Unretained.
- syncer::WorkCallback c =
+ WorkCallback c =
base::Bind(&UIModelWorkerVisitor::DoWork, base::Unretained(visitor));
worker_->DoWorkAndWaitUntilDone(c);
}
@@ -100,3 +99,5 @@ TEST_F(SyncUIModelWorkerTest, ScheduledWorkRunsOnUILoop) {
base::RunLoop().Run();
syncer_thread()->Stop();
}
+
+} // namespace syncer
« no previous file with comments | « components/sync/driver/glue/ui_model_worker.cc ('k') | components/sync/driver/invalidation_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698