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

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

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 5 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) 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 "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/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
10 #include "content/public/test/test_browser_thread.h" 10 #include "content/public/test/test_browser_thread.h"
11 #include "sync/internal_api/public/base/model_type.h" 11 #include "sync/internal_api/public/base/model_type.h"
12 #include "sync/internal_api/public/test/test_user_share.h" 12 #include "sync/internal_api/public/test/test_user_share.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace browser_sync { 16 namespace browser_sync {
17 17
18 namespace { 18 namespace {
19 19
20 using ::testing::_; 20 using ::testing::_;
21 using ::testing::InSequence; 21 using ::testing::InSequence;
22 using ::testing::Return; 22 using ::testing::Return;
23 using ::testing::StrictMock; 23 using ::testing::StrictMock;
24 using content::BrowserThread; 24 using content::BrowserThread;
25 using syncable::FIRST_REAL_MODEL_TYPE; 25 using syncer::FIRST_REAL_MODEL_TYPE;
26 using syncable::AUTOFILL; 26 using syncer::AUTOFILL;
27 using syncable::BOOKMARKS; 27 using syncer::BOOKMARKS;
28 using syncable::PREFERENCES; 28 using syncer::PREFERENCES;
29 using syncable::THEMES; 29 using syncer::THEMES;
30 using syncable::NIGORI; 30 using syncer::NIGORI;
31 using syncable::PASSWORDS; 31 using syncer::PASSWORDS;
32 using syncable::MODEL_TYPE_COUNT; 32 using syncer::MODEL_TYPE_COUNT;
33 using syncable::ModelTypeSet; 33 using syncer::ModelTypeSet;
34 using syncable::ModelType; 34 using syncer::ModelType;
35 using syncable::ModelTypeFromInt; 35 using syncer::ModelTypeFromInt;
36 36
37 class SyncBackendRegistrarTest : public testing::Test { 37 class SyncBackendRegistrarTest : public testing::Test {
38 protected: 38 protected:
39 SyncBackendRegistrarTest() : ui_thread_(BrowserThread::UI, &loop_) {} 39 SyncBackendRegistrarTest() : ui_thread_(BrowserThread::UI, &loop_) {}
40 40
41 virtual ~SyncBackendRegistrarTest() {} 41 virtual ~SyncBackendRegistrarTest() {}
42 42
43 virtual void SetUp() { 43 virtual void SetUp() {
44 test_user_share_.SetUp(); 44 test_user_share_.SetUp();
45 } 45 }
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // Should do nothing. 241 // Should do nothing.
242 TriggerChanges(&registrar, AUTOFILL); 242 TriggerChanges(&registrar, AUTOFILL);
243 243
244 registrar.OnSyncerShutdownComplete(); 244 registrar.OnSyncerShutdownComplete();
245 registrar.StopOnUIThread(); 245 registrar.StopOnUIThread();
246 } 246 }
247 247
248 } // namespace 248 } // namespace
249 249
250 } // namespace browser_sync 250 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_registrar.cc ('k') | chrome/browser/sync/glue/theme_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698