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

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

Issue 7474025: Move more files from chrome/test to chrome/test/base, part #2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
10 #include "base/task.h" 10 #include "base/task.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/sync/profile_sync_factory_mock.h" 23 #include "chrome/browser/sync/profile_sync_factory_mock.h"
24 #include "chrome/browser/sync/profile_sync_service.h" 24 #include "chrome/browser/sync/profile_sync_service.h"
25 #include "chrome/browser/sync/profile_sync_test_util.h" 25 #include "chrome/browser/sync/profile_sync_test_util.h"
26 #include "chrome/browser/sync/protocol/password_specifics.pb.h" 26 #include "chrome/browser/sync/protocol/password_specifics.pb.h"
27 #include "chrome/browser/sync/syncable/directory_manager.h" 27 #include "chrome/browser/sync/syncable/directory_manager.h"
28 #include "chrome/browser/sync/syncable/syncable.h" 28 #include "chrome/browser/sync/syncable/syncable.h"
29 #include "chrome/browser/sync/test_profile_sync_service.h" 29 #include "chrome/browser/sync/test_profile_sync_service.h"
30 #include "chrome/common/chrome_notification_types.h" 30 #include "chrome/common/chrome_notification_types.h"
31 #include "chrome/common/net/gaia/gaia_constants.h" 31 #include "chrome/common/net/gaia/gaia_constants.h"
32 #include "chrome/common/pref_names.h" 32 #include "chrome/common/pref_names.h"
33 #include "chrome/test/base/profile_mock.h"
33 #include "chrome/test/sync/engine/test_id_factory.h" 34 #include "chrome/test/sync/engine/test_id_factory.h"
34 #include "chrome/test/profile_mock.h"
35 #include "content/browser/browser_thread.h" 35 #include "content/browser/browser_thread.h"
36 #include "content/common/notification_observer_mock.h" 36 #include "content/common/notification_observer_mock.h"
37 #include "content/common/notification_source.h" 37 #include "content/common/notification_source.h"
38 #include "testing/gmock/include/gmock/gmock.h" 38 #include "testing/gmock/include/gmock/gmock.h"
39 #include "webkit/glue/password_form.h" 39 #include "webkit/glue/password_form.h"
40 40
41 using base::Time; 41 using base::Time;
42 using browser_sync::PasswordChangeProcessor; 42 using browser_sync::PasswordChangeProcessor;
43 using browser_sync::PasswordDataTypeController; 43 using browser_sync::PasswordDataTypeController;
44 using browser_sync::PasswordModelAssociator; 44 using browser_sync::PasswordModelAssociator;
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 AddPasswordEntriesTask node_task(this, sync_forms); 612 AddPasswordEntriesTask node_task(this, sync_forms);
613 613
614 StartSyncService(&root_task, &node_task); 614 StartSyncService(&root_task, &node_task);
615 615
616 std::vector<PasswordForm> new_sync_forms; 616 std::vector<PasswordForm> new_sync_forms;
617 GetPasswordEntriesFromSyncDB(&new_sync_forms); 617 GetPasswordEntriesFromSyncDB(&new_sync_forms);
618 618
619 EXPECT_EQ(1U, new_sync_forms.size()); 619 EXPECT_EQ(1U, new_sync_forms.size());
620 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0])); 620 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0]));
621 } 621 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698