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

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

Issue 2662453008: [Sync] Fix sync lint errors/includes, update presubmit. (Closed)
Patch Set: Rebase Created 3 years, 10 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 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/engine/ui_model_worker.h" 5 #include "components/sync/engine/ui_model_worker.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/memory/ref_counted.h"
14 #include "base/run_loop.h" 13 #include "base/run_loop.h"
15 #include "base/test/test_timeouts.h" 14 #include "base/test/test_timeouts.h"
16 #include "base/threading/platform_thread.h" 15 #include "base/threading/platform_thread.h"
17 #include "base/threading/thread.h" 16 #include "base/threading/thread.h"
18 #include "base/threading/thread_task_runner_handle.h" 17 #include "base/threading/thread_task_runner_handle.h"
19 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
20 19
21 namespace syncer { 20 namespace syncer {
22 namespace { 21 namespace {
23 22
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // RequestStop() is called. However, it doesn't fail (no flakes). 110 // RequestStop() is called. However, it doesn't fail (no flakes).
112 base::PlatformThread::Sleep(TestTimeouts::tiny_timeout()); 111 base::PlatformThread::Sleep(TestTimeouts::tiny_timeout());
113 112
114 // The sync thread shouldn't wait for the WorkCallback to run on the UI thread 113 // The sync thread shouldn't wait for the WorkCallback to run on the UI thread
115 // after RequestStop() is called. 114 // after RequestStop() is called.
116 worker_->RequestStop(); 115 worker_->RequestStop();
117 sync_thread_.Stop(); 116 sync_thread_.Stop();
118 } 117 }
119 118
120 } // namespace syncer 119 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/sync_backend_registrar_unittest.cc ('k') | components/sync/engine_impl/cycle/nudge_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698