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

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

Issue 7624009: Original patch by rlarocque@chromium.org at http://codereview.chromium.org/7633077/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows build pt5 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"
11 #include "base/test/test_timeouts.h" 11 #include "base/test/test_timeouts.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "base/tracked.h" 13 #include "base/tracked.h"
14 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
15 #include "chrome/browser/password_manager/password_store.h" 15 #include "chrome/browser/password_manager/password_store.h"
16 #include "chrome/browser/prefs/pref_service.h" 16 #include "chrome/browser/prefs/pref_service.h"
17 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" 17 #include "chrome/browser/sync/abstract_profile_sync_service_test.h"
18 #include "chrome/browser/sync/engine/syncapi.h"
19 #include "chrome/browser/sync/glue/password_change_processor.h" 18 #include "chrome/browser/sync/glue/password_change_processor.h"
20 #include "chrome/browser/sync/glue/password_data_type_controller.h" 19 #include "chrome/browser/sync/glue/password_data_type_controller.h"
21 #include "chrome/browser/sync/glue/password_model_associator.h" 20 #include "chrome/browser/sync/glue/password_model_associator.h"
21 #include "chrome/browser/sync/internal_api/read_node.h"
22 #include "chrome/browser/sync/internal_api/read_transaction.h"
23 #include "chrome/browser/sync/internal_api/write_node.h"
24 #include "chrome/browser/sync/internal_api/write_transaction.h"
22 #include "chrome/browser/sync/profile_sync_factory.h" 25 #include "chrome/browser/sync/profile_sync_factory.h"
23 #include "chrome/browser/sync/profile_sync_factory_mock.h" 26 #include "chrome/browser/sync/profile_sync_factory_mock.h"
24 #include "chrome/browser/sync/profile_sync_service.h" 27 #include "chrome/browser/sync/profile_sync_service.h"
25 #include "chrome/browser/sync/profile_sync_test_util.h" 28 #include "chrome/browser/sync/profile_sync_test_util.h"
26 #include "chrome/browser/sync/protocol/password_specifics.pb.h" 29 #include "chrome/browser/sync/protocol/password_specifics.pb.h"
27 #include "chrome/browser/sync/syncable/directory_manager.h" 30 #include "chrome/browser/sync/syncable/directory_manager.h"
28 #include "chrome/browser/sync/syncable/syncable.h" 31 #include "chrome/browser/sync/syncable/syncable.h"
29 #include "chrome/browser/sync/test_profile_sync_service.h" 32 #include "chrome/browser/sync/test_profile_sync_service.h"
30 #include "chrome/common/chrome_notification_types.h" 33 #include "chrome/common/chrome_notification_types.h"
31 #include "chrome/common/net/gaia/gaia_constants.h" 34 #include "chrome/common/net/gaia/gaia_constants.h"
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 AddPasswordEntriesTask node_task(this, sync_forms); 615 AddPasswordEntriesTask node_task(this, sync_forms);
613 616
614 StartSyncService(&root_task, &node_task); 617 StartSyncService(&root_task, &node_task);
615 618
616 std::vector<PasswordForm> new_sync_forms; 619 std::vector<PasswordForm> new_sync_forms;
617 GetPasswordEntriesFromSyncDB(&new_sync_forms); 620 GetPasswordEntriesFromSyncDB(&new_sync_forms);
618 621
619 EXPECT_EQ(1U, new_sync_forms.size()); 622 EXPECT_EQ(1U, new_sync_forms.size());
620 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0])); 623 EXPECT_TRUE(ComparePasswords(expected_forms[0], new_sync_forms[0]));
621 } 624 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698