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

Side by Side Diff: chrome/browser/sync/profile_sync_service_password_unittest.cc

Issue 3133022: sync: take two for: "Added classes to enable session sync... (Closed)
Patch Set: Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <vector> 5 #include <vector>
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 #include "base/task.h" 9 #include "base/task.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 26 matching lines...) Expand all
37 using browser_sync::PasswordDataTypeController; 37 using browser_sync::PasswordDataTypeController;
38 using browser_sync::PasswordModelAssociator; 38 using browser_sync::PasswordModelAssociator;
39 using browser_sync::SyncBackendHostMock; 39 using browser_sync::SyncBackendHostMock;
40 using browser_sync::TestIdFactory; 40 using browser_sync::TestIdFactory;
41 using browser_sync::UnrecoverableErrorHandler; 41 using browser_sync::UnrecoverableErrorHandler;
42 using sync_api::SyncManager; 42 using sync_api::SyncManager;
43 using sync_api::UserShare; 43 using sync_api::UserShare;
44 using syncable::BASE_VERSION; 44 using syncable::BASE_VERSION;
45 using syncable::CREATE; 45 using syncable::CREATE;
46 using syncable::DirectoryManager; 46 using syncable::DirectoryManager;
47 using syncable::ID;
48 using syncable::IS_DEL; 47 using syncable::IS_DEL;
49 using syncable::IS_DIR; 48 using syncable::IS_DIR;
50 using syncable::IS_UNAPPLIED_UPDATE; 49 using syncable::IS_UNAPPLIED_UPDATE;
51 using syncable::IS_UNSYNCED; 50 using syncable::IS_UNSYNCED;
52 using syncable::MutableEntry; 51 using syncable::MutableEntry;
53 using syncable::SERVER_IS_DIR; 52 using syncable::SERVER_IS_DIR;
54 using syncable::SERVER_VERSION; 53 using syncable::SERVER_VERSION;
55 using syncable::SPECIFICS; 54 using syncable::SPECIFICS;
56 using syncable::ScopedDirLookup; 55 using syncable::ScopedDirLookup;
57 using syncable::UNIQUE_SERVER_TAG; 56 using syncable::UNIQUE_SERVER_TAG;
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 AddPasswordEntriesTask node_task(this, sync_forms); 523 AddPasswordEntriesTask node_task(this, sync_forms);
525 524
526 StartSyncService(&root_task, &node_task); 525 StartSyncService(&root_task, &node_task);
527 526
528 std::vector<PasswordForm> new_sync_forms; 527 std::vector<PasswordForm> new_sync_forms;
529 GetPasswordEntriesFromSyncDB(&new_sync_forms); 528 GetPasswordEntriesFromSyncDB(&new_sync_forms);
530 529
531 EXPECT_EQ(1U, new_sync_forms.size()); 530 EXPECT_EQ(1U, new_sync_forms.size());
532 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0])); 531 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0]));
533 } 532 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698