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

Side by Side Diff: chrome/browser/sync/profile_sync_service_autofill_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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "base/synchronization/waitable_event.h" 16 #include "base/synchronization/waitable_event.h"
17 #include "base/task.h" 17 #include "base/task.h"
18 #include "base/time.h" 18 #include "base/time.h"
19 #include "base/tracked.h" 19 #include "base/tracked.h"
20 #include "base/utf_string_conversions.h" 20 #include "base/utf_string_conversions.h"
21 #include "chrome/browser/autofill/autofill_common_test.h" 21 #include "chrome/browser/autofill/autofill_common_test.h"
22 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" 22 #include "chrome/browser/sync/abstract_profile_sync_service_test.h"
23 #include "chrome/browser/sync/engine/model_changing_syncer_command.h" 23 #include "chrome/browser/sync/engine/model_changing_syncer_command.h"
24 #include "chrome/browser/sync/engine/syncapi.h"
25 #include "chrome/browser/sync/glue/autofill_change_processor.h" 24 #include "chrome/browser/sync/glue/autofill_change_processor.h"
26 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" 25 #include "chrome/browser/sync/glue/autofill_data_type_controller.h"
27 #include "chrome/browser/sync/glue/autofill_model_associator.h" 26 #include "chrome/browser/sync/glue/autofill_model_associator.h"
28 #include "chrome/browser/sync/glue/autofill_profile_change_processor.h" 27 #include "chrome/browser/sync/glue/autofill_profile_change_processor.h"
29 #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h" 28 #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h"
30 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h" 29 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h"
31 #include "chrome/browser/sync/glue/data_type_controller.h" 30 #include "chrome/browser/sync/glue/data_type_controller.h"
31 #include "chrome/browser/sync/internal_api/read_node.h"
32 #include "chrome/browser/sync/internal_api/read_transaction.h"
33 #include "chrome/browser/sync/internal_api/write_node.h"
34 #include "chrome/browser/sync/internal_api/write_transaction.h"
32 #include "chrome/browser/sync/profile_sync_factory.h" 35 #include "chrome/browser/sync/profile_sync_factory.h"
33 #include "chrome/browser/sync/profile_sync_service.h" 36 #include "chrome/browser/sync/profile_sync_service.h"
34 #include "chrome/browser/sync/profile_sync_test_util.h" 37 #include "chrome/browser/sync/profile_sync_test_util.h"
35 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" 38 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h"
36 #include "chrome/browser/sync/syncable/directory_manager.h" 39 #include "chrome/browser/sync/syncable/directory_manager.h"
37 #include "chrome/browser/sync/syncable/model_type.h" 40 #include "chrome/browser/sync/syncable/model_type.h"
38 #include "chrome/browser/sync/syncable/syncable.h" 41 #include "chrome/browser/sync/syncable/syncable.h"
39 #include "chrome/browser/sync/test_profile_sync_service.h" 42 #include "chrome/browser/sync/test_profile_sync_service.h"
40 #include "chrome/browser/webdata/autofill_change.h" 43 #include "chrome/browser/webdata/autofill_change.h"
41 #include "chrome/browser/webdata/autofill_entry.h" 44 #include "chrome/browser/webdata/autofill_entry.h"
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 std::vector<AutofillEntry> sync_entries; 1085 std::vector<AutofillEntry> sync_entries;
1083 std::vector<AutofillProfile> sync_profiles; 1086 std::vector<AutofillProfile> sync_profiles;
1084 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); 1087 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles));
1085 EXPECT_EQ(3U, sync_entries.size()); 1088 EXPECT_EQ(3U, sync_entries.size());
1086 EXPECT_EQ(0U, sync_profiles.size()); 1089 EXPECT_EQ(0U, sync_profiles.size());
1087 for (size_t i = 0; i < sync_entries.size(); i++) { 1090 for (size_t i = 0; i < sync_entries.size(); i++) {
1088 VLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() 1091 VLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name()
1089 << ", " << sync_entries[i].key().value(); 1092 << ", " << sync_entries[i].key().value();
1090 } 1093 }
1091 } 1094 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_bookmark_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698