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

Unified Diff: chrome/browser/sync/profile_sync_service_password_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: Fix indent, and remove some redundant using declarations 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/profile_sync_service_password_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_password_unittest.cc b/chrome/browser/sync/profile_sync_service_password_unittest.cc
index f02bb22e5a76584eeb719ec76d33eb3d26a044e6..c0fe8bbb135fd3a7daaf34ae643ac50ab4328db1 100644
--- a/chrome/browser/sync/profile_sync_service_password_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_password_unittest.cc
@@ -125,7 +125,7 @@ class ProfileSyncServicePasswordTest : public AbstractProfileSyncServiceTest {
syncer::WriteNode node(&trans);
std::string tag = PasswordModelAssociator::MakeTag(entry);
syncer::WriteNode::InitUniqueByCreationResult result =
- node.InitUniqueByCreation(syncable::PASSWORDS, password_root, tag);
+ node.InitUniqueByCreation(syncer::PASSWORDS, password_root, tag);
ASSERT_EQ(syncer::WriteNode::INIT_SUCCESS, result);
PasswordModelAssociator::WriteToSyncNode(entry, &node);
}
@@ -181,9 +181,9 @@ class ProfileSyncServicePasswordTest : public AbstractProfileSyncServiceTest {
service_.reset(new PasswordTestProfileSyncService(
factory, &profile_, signin, false,
root_callback, node_callback));
- syncable::ModelTypeSet preferred_types =
rlarocque 2012/07/03 17:51:25 nit: put this one one line. This probably isn't t
akalin 2012/07/03 21:47:08 I went through the CL and cleaned up as much as I
+ syncer::ModelTypeSet preferred_types =
service_->GetPreferredDataTypes();
- preferred_types.Put(syncable::PASSWORDS);
+ preferred_types.Put(syncer::PASSWORDS);
service_->ChangePreferredDataTypes(preferred_types);
PasswordDataTypeController* data_type_controller =
new PasswordDataTypeController(factory,
@@ -289,7 +289,7 @@ TEST_F(ProfileSyncServicePasswordTest, EmptyNativeEmptySync) {
EXPECT_CALL(*password_store_, FillBlacklistLogins(_))
.WillOnce(Return(true));
SetIdleChangeProcessorExpectations();
- CreateRootHelper create_root(this, syncable::PASSWORDS);
+ CreateRootHelper create_root(this, syncer::PASSWORDS);
StartSyncService(create_root.callback(), base::Closure());
std::vector<PasswordForm> sync_entries;
GetPasswordEntriesFromSyncDB(&sync_entries);
@@ -319,7 +319,7 @@ TEST_F(ProfileSyncServicePasswordTest, HasNativeEntriesEmptySync) {
EXPECT_CALL(*password_store_, FillBlacklistLogins(_))
.WillOnce(Return(true));
SetIdleChangeProcessorExpectations();
- CreateRootHelper create_root(this, syncable::PASSWORDS);
+ CreateRootHelper create_root(this, syncer::PASSWORDS);
StartSyncService(create_root.callback(), base::Closure());
std::vector<PasswordForm> sync_forms;
GetPasswordEntriesFromSyncDB(&sync_forms);
@@ -371,7 +371,7 @@ TEST_F(ProfileSyncServicePasswordTest, HasNativeEntriesEmptySyncSameUsername) {
EXPECT_CALL(*password_store_, FillBlacklistLogins(_))
.WillOnce(Return(true));
SetIdleChangeProcessorExpectations();
- CreateRootHelper create_root(this, syncable::PASSWORDS);
+ CreateRootHelper create_root(this, syncer::PASSWORDS);
StartSyncService(create_root.callback(), base::Closure());
std::vector<PasswordForm> sync_forms;
GetPasswordEntriesFromSyncDB(&sync_forms);
@@ -426,7 +426,7 @@ TEST_F(ProfileSyncServicePasswordTest, HasNativeHasSyncNoMerge) {
EXPECT_CALL(*password_store_, FillBlacklistLogins(_)).WillOnce(Return(true));
EXPECT_CALL(*password_store_, AddLoginImpl(_)).Times(1);
- CreateRootHelper create_root(this, syncable::PASSWORDS);
+ CreateRootHelper create_root(this, syncer::PASSWORDS);
StartSyncService(create_root.callback(),
base::Bind(&AddPasswordEntriesCallback, this, sync_forms));
@@ -491,7 +491,7 @@ TEST_F(ProfileSyncServicePasswordTest, EnsureNoTransactions) {
EXPECT_CALL(*password_store_, AddLoginImpl(_))
.WillOnce(AcquireSyncTransaction(this));
- CreateRootHelper create_root(this, syncable::PASSWORDS);
+ CreateRootHelper create_root(this, syncer::PASSWORDS);
StartSyncService(create_root.callback(),
base::Bind(&AddPasswordEntriesCallback, this, sync_forms));
@@ -564,7 +564,7 @@ TEST_F(ProfileSyncServicePasswordTest, HasNativeHasSyncMergeEntry) {
EXPECT_CALL(*password_store_, FillBlacklistLogins(_)).WillOnce(Return(true));
EXPECT_CALL(*password_store_, UpdateLoginImpl(_)).Times(1);
- CreateRootHelper create_root(this, syncable::PASSWORDS);
+ CreateRootHelper create_root(this, syncer::PASSWORDS);
StartSyncService(create_root.callback(),
base::Bind(&AddPasswordEntriesCallback, this, sync_forms));

Powered by Google App Engine
This is Rietveld 408576698