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

Side by Side Diff: components/sync/engine/ui_model_worker_unittest.cc

Issue 2503423004: [Sync] Move sync's ModelSafeWorker implementations to engine/. (Closed)
Patch Set: Rebase. Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/driver/glue/ui_model_worker.h" 5 #include "components/sync/engine/ui_model_worker.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "base/threading/thread.h" 12 #include "base/threading/thread.h"
13 #include "base/threading/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 TEST_F(SyncUIModelWorkerTest, ScheduledWorkRunsOnUILoop) { 55 TEST_F(SyncUIModelWorkerTest, ScheduledWorkRunsOnUILoop) {
56 base::RunLoop run_loop; 56 base::RunLoop run_loop;
57 PostWorkToSyncThread(ClosureToWorkCallback(run_loop.QuitClosure())); 57 PostWorkToSyncThread(ClosureToWorkCallback(run_loop.QuitClosure()));
58 // This won't quit until the QuitClosure is run. 58 // This won't quit until the QuitClosure is run.
59 run_loop.Run(); 59 run_loop.Run();
60 } 60 }
61 61
62 } // namespace 62 } // namespace
63 } // namespace syncer 63 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/ui_model_worker.cc ('k') | ios/chrome/browser/sync/ios_chrome_sync_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698