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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/location.h" 15 #include "base/location.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/message_loop.h" 18 #include "base/message_loop.h"
19 #include "base/string16.h" 19 #include "base/string16.h"
20 #include "base/synchronization/waitable_event.h" 20 #include "base/synchronization/waitable_event.h"
21 #include "base/time.h" 21 #include "base/time.h"
22 #include "base/utf_string_conversions.h" 22 #include "base/utf_string_conversions.h"
23 #include "chrome/browser/autofill/autofill_common_test.h" 23 #include "chrome/browser/autofill/autofill_common_test.h"
24 #include "chrome/browser/autofill/personal_data_manager.h" 24 #include "chrome/browser/autofill/personal_data_manager.h"
25 #include "chrome/browser/autofill/personal_data_manager_factory.h" 25 #include "chrome/browser/autofill/personal_data_manager_factory.h"
26 #include "chrome/browser/signin/signin_manager.h" 26 #include "chrome/browser/signin/signin_manager.h"
27 #include "chrome/browser/signin/signin_manager_factory.h" 27 #include "chrome/browser/signin/signin_manager_factory.h"
28 #include "chrome/browser/signin/token_service_factory.h" 28 #include "chrome/browser/signin/token_service_factory.h"
29 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" 29 #include "chrome/browser/sync/abstract_profile_sync_service_test.h"
30 #include "chrome/browser/sync/engine/model_changing_syncer_command.h"
31 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" 30 #include "chrome/browser/sync/glue/autofill_data_type_controller.h"
32 #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h" 31 #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h"
33 #include "chrome/browser/sync/glue/data_type_controller.h" 32 #include "chrome/browser/sync/glue/data_type_controller.h"
34 #include "chrome/browser/sync/glue/generic_change_processor.h" 33 #include "chrome/browser/sync/glue/generic_change_processor.h"
35 #include "chrome/browser/sync/glue/shared_change_processor.h" 34 #include "chrome/browser/sync/glue/shared_change_processor.h"
36 #include "chrome/browser/sync/internal_api/read_node.h" 35 #include "chrome/browser/sync/internal_api/read_node.h"
37 #include "chrome/browser/sync/internal_api/read_transaction.h" 36 #include "chrome/browser/sync/internal_api/read_transaction.h"
38 #include "chrome/browser/sync/internal_api/write_node.h" 37 #include "chrome/browser/sync/internal_api/write_node.h"
39 #include "chrome/browser/sync/internal_api/write_transaction.h" 38 #include "chrome/browser/sync/internal_api/write_transaction.h"
40 #include "chrome/browser/sync/profile_sync_components_factory.h" 39 #include "chrome/browser/sync/profile_sync_components_factory.h"
41 #include "chrome/browser/sync/profile_sync_service.h" 40 #include "chrome/browser/sync/profile_sync_service.h"
42 #include "chrome/browser/sync/profile_sync_test_util.h" 41 #include "chrome/browser/sync/profile_sync_test_util.h"
43 #include "chrome/browser/sync/syncable/model_type.h"
44 #include "chrome/browser/sync/syncable/syncable.h"
45 #include "chrome/browser/sync/test/engine/test_id_factory.h"
46 #include "chrome/browser/sync/test_profile_sync_service.h" 42 #include "chrome/browser/sync/test_profile_sync_service.h"
47 #include "chrome/browser/webdata/autocomplete_syncable_service.h" 43 #include "chrome/browser/webdata/autocomplete_syncable_service.h"
48 #include "chrome/browser/webdata/autofill_change.h" 44 #include "chrome/browser/webdata/autofill_change.h"
49 #include "chrome/browser/webdata/autofill_entry.h" 45 #include "chrome/browser/webdata/autofill_entry.h"
50 #include "chrome/browser/webdata/autofill_profile_syncable_service.h" 46 #include "chrome/browser/webdata/autofill_profile_syncable_service.h"
51 #include "chrome/browser/webdata/autofill_table.h" 47 #include "chrome/browser/webdata/autofill_table.h"
52 #include "chrome/browser/webdata/web_database.h" 48 #include "chrome/browser/webdata/web_database.h"
53 #include "chrome/common/chrome_notification_types.h" 49 #include "chrome/common/chrome_notification_types.h"
54 #include "chrome/common/net/gaia/gaia_constants.h" 50 #include "chrome/common/net/gaia/gaia_constants.h"
55 #include "content/public/browser/notification_source.h" 51 #include "content/public/browser/notification_source.h"
56 #include "content/test/test_browser_thread.h" 52 #include "content/test/test_browser_thread.h"
53 #include "sync/engine/model_changing_syncer_command.h"
57 #include "sync/protocol/autofill_specifics.pb.h" 54 #include "sync/protocol/autofill_specifics.pb.h"
55 #include "sync/syncable/model_type.h"
56 #include "sync/syncable/syncable.h"
57 #include "sync/test/engine/test_id_factory.h"
58 #include "testing/gmock/include/gmock/gmock.h" 58 #include "testing/gmock/include/gmock/gmock.h"
59 59
60 using base::Time; 60 using base::Time;
61 using base::WaitableEvent; 61 using base::WaitableEvent;
62 using browser_sync::AutofillDataTypeController; 62 using browser_sync::AutofillDataTypeController;
63 using browser_sync::AutofillProfileDataTypeController; 63 using browser_sync::AutofillProfileDataTypeController;
64 using browser_sync::DataTypeController; 64 using browser_sync::DataTypeController;
65 using browser_sync::GenericChangeProcessor; 65 using browser_sync::GenericChangeProcessor;
66 using browser_sync::SharedChangeProcessor; 66 using browser_sync::SharedChangeProcessor;
67 using browser_sync::GROUP_DB; 67 using browser_sync::GROUP_DB;
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 std::vector<AutofillEntry> sync_entries; 1225 std::vector<AutofillEntry> sync_entries;
1226 std::vector<AutofillProfile> sync_profiles; 1226 std::vector<AutofillProfile> sync_profiles;
1227 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); 1227 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles));
1228 EXPECT_EQ(3U, sync_entries.size()); 1228 EXPECT_EQ(3U, sync_entries.size());
1229 EXPECT_EQ(0U, sync_profiles.size()); 1229 EXPECT_EQ(0U, sync_profiles.size());
1230 for (size_t i = 0; i < sync_entries.size(); i++) { 1230 for (size_t i = 0; i < sync_entries.size(); i++) {
1231 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() 1231 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name()
1232 << ", " << sync_entries[i].key().value(); 1232 << ", " << sync_entries[i].key().value();
1233 } 1233 }
1234 } 1234 }
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