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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_registrar_unittest.cc

Issue 7744039: Switch ChromeTestSuite to the same convention as ContentTestSuite: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixing Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/sync/glue/sync_backend_registrar.h" 5 #include "chrome/browser/sync/glue/sync_backend_registrar.h"
6 6
7 #include "chrome/browser/sync/glue/change_processor_mock.h" 7 #include "chrome/browser/sync/glue/change_processor_mock.h"
8 #include "chrome/browser/sync/glue/ui_model_worker.h" 8 #include "chrome/browser/sync/glue/ui_model_worker.h"
9 #include "chrome/browser/sync/syncable/model_type.h" 9 #include "chrome/browser/sync/syncable/model_type.h"
10 #include "chrome/test/base/testing_browser_process_test.h"
11 #include "chrome/test/base/testing_profile.h" 10 #include "chrome/test/base/testing_profile.h"
12 #include "chrome/test/sync/engine/test_user_share.h" 11 #include "chrome/test/sync/engine/test_user_share.h"
13 #include "content/browser/browser_thread.h" 12 #include "content/browser/browser_thread.h"
14 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
15 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
16 15
17 namespace browser_sync { 16 namespace browser_sync {
18 17
19 namespace { 18 namespace {
20 19
21 using ::testing::InSequence; 20 using ::testing::InSequence;
22 using ::testing::Return; 21 using ::testing::Return;
23 using ::testing::StrictMock; 22 using ::testing::StrictMock;
24 using syncable::FIRST_REAL_MODEL_TYPE; 23 using syncable::FIRST_REAL_MODEL_TYPE;
25 using syncable::AUTOFILL; 24 using syncable::AUTOFILL;
26 using syncable::BOOKMARKS; 25 using syncable::BOOKMARKS;
27 using syncable::PREFERENCES; 26 using syncable::PREFERENCES;
28 using syncable::THEMES; 27 using syncable::THEMES;
29 using syncable::NIGORI; 28 using syncable::NIGORI;
30 using syncable::PASSWORDS; 29 using syncable::PASSWORDS;
31 using syncable::MODEL_TYPE_COUNT; 30 using syncable::MODEL_TYPE_COUNT;
32 using syncable::ModelType; 31 using syncable::ModelType;
33 using syncable::ModelTypeFromInt; 32 using syncable::ModelTypeFromInt;
34 using syncable::ModelTypeSet; 33 using syncable::ModelTypeSet;
35 34
36 class SyncBackendRegistrarTest : public TestingBrowserProcessTest { 35 class SyncBackendRegistrarTest : public testing::Test {
37 protected: 36 protected:
38 SyncBackendRegistrarTest() : ui_thread_(BrowserThread::UI, &loop_) {} 37 SyncBackendRegistrarTest() : ui_thread_(BrowserThread::UI, &loop_) {}
39 38
40 virtual ~SyncBackendRegistrarTest() {} 39 virtual ~SyncBackendRegistrarTest() {}
41 40
42 virtual void SetUp() { 41 virtual void SetUp() {
43 test_user_share_.SetUp(); 42 test_user_share_.SetUp();
44 } 43 }
45 44
46 virtual void TearDown() { 45 virtual void TearDown() {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 registrar.OnSyncerShutdownComplete(); 222 registrar.OnSyncerShutdownComplete();
224 registrar.StopOnUIThread(); 223 registrar.StopOnUIThread();
225 } 224 }
226 225
227 // TODO(akalin): Add tests for non-UI non-passive data types (see 226 // TODO(akalin): Add tests for non-UI non-passive data types (see
228 // http://crbug.com/93456). 227 // http://crbug.com/93456).
229 228
230 } // namespace 229 } // namespace
231 230
232 } // namespace browser_sync 231 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698