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

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

Issue 3127017: Revert 56423 - Added classes to enable session sync functionality.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 | Annotate | Revision Log
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;
47 using syncable::IS_DEL; 48 using syncable::IS_DEL;
48 using syncable::IS_DIR; 49 using syncable::IS_DIR;
49 using syncable::IS_UNAPPLIED_UPDATE; 50 using syncable::IS_UNAPPLIED_UPDATE;
50 using syncable::IS_UNSYNCED; 51 using syncable::IS_UNSYNCED;
51 using syncable::MutableEntry; 52 using syncable::MutableEntry;
52 using syncable::SERVER_IS_DIR; 53 using syncable::SERVER_IS_DIR;
53 using syncable::SERVER_VERSION; 54 using syncable::SERVER_VERSION;
54 using syncable::SPECIFICS; 55 using syncable::SPECIFICS;
55 using syncable::ScopedDirLookup; 56 using syncable::ScopedDirLookup;
56 using syncable::UNIQUE_SERVER_TAG; 57 using syncable::UNIQUE_SERVER_TAG;
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 AddPasswordEntriesTask node_task(this, sync_forms); 524 AddPasswordEntriesTask node_task(this, sync_forms);
524 525
525 StartSyncService(&root_task, &node_task); 526 StartSyncService(&root_task, &node_task);
526 527
527 std::vector<PasswordForm> new_sync_forms; 528 std::vector<PasswordForm> new_sync_forms;
528 GetPasswordEntriesFromSyncDB(&new_sync_forms); 529 GetPasswordEntriesFromSyncDB(&new_sync_forms);
529 530
530 EXPECT_EQ(1U, new_sync_forms.size()); 531 EXPECT_EQ(1U, new_sync_forms.size());
531 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0])); 532 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0]));
532 } 533 }
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