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

Unified Diff: chrome/browser/sync/glue/bridged_sync_notifier_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, 6 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
Index: chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc
diff --git a/chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc b/chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc
index 71fab0da65417e772473aa21bef55662171800cf..e45ddf3dd77296481bbd9b4ea9e96de00c6187c1 100644
--- a/chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc
+++ b/chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc
@@ -25,7 +25,7 @@ namespace {
using ::testing::NiceMock;
using ::testing::StrictMock;
using content::BrowserThread;
-using syncer::syncable::HasModelTypes;
+using syncer::HasModelTypes;
class MockChromeSyncNotificationBridge : public ChromeSyncNotificationBridge {
public:
@@ -49,8 +49,8 @@ class MockSyncNotifier : public syncer::SyncNotifier {
MOCK_METHOD1(SetUniqueId, void(const std::string&));
MOCK_METHOD1(SetStateDeprecated, void(const std::string&));
MOCK_METHOD2(UpdateCredentials, void(const std::string&, const std::string&));
- MOCK_METHOD1(UpdateEnabledTypes, void(syncable::ModelTypeSet));
- MOCK_METHOD1(SendNotification, void(syncable::ModelTypeSet));
+ MOCK_METHOD1(UpdateEnabledTypes, void(syncer::ModelTypeSet));
+ MOCK_METHOD1(SendNotification, void(syncer::ModelTypeSet));
};
// All tests just verify that each call is passed through to the delegate, with
@@ -106,16 +106,14 @@ TEST_F(BridgedSyncNotifierTest, UpdateCredentials) {
}
TEST_F(BridgedSyncNotifierTest, UpdateEnabledTypes) {
- syncable::ModelTypeSet enabled_types(syncable::BOOKMARKS,
- syncable::PREFERENCES);
+ syncer::ModelTypeSet enabled_types(syncer::BOOKMARKS, syncer::PREFERENCES);
EXPECT_CALL(*mock_delegate_,
UpdateEnabledTypes(HasModelTypes(enabled_types)));
bridged_notifier_.UpdateEnabledTypes(enabled_types);
}
TEST_F(BridgedSyncNotifierTest, SendNotification) {
- syncable::ModelTypeSet changed_types(syncable::SESSIONS,
- syncable::EXTENSIONS);
+ syncer::ModelTypeSet changed_types(syncer::SESSIONS, syncer::EXTENSIONS);
EXPECT_CALL(*mock_delegate_, SendNotification(HasModelTypes(changed_types)));
bridged_notifier_.SendNotification(changed_types);
}
« no previous file with comments | « chrome/browser/sync/glue/bridged_sync_notifier.cc ('k') | chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698