OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/strings/utf_string_conversions.h" |
20 #include "base/synchronization/waitable_event.h" | 21 #include "base/synchronization/waitable_event.h" |
21 #include "base/time.h" | 22 #include "base/time.h" |
22 #include "base/utf_string_conversions.h" | |
23 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 23 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
24 #include "chrome/browser/signin/signin_manager.h" | 24 #include "chrome/browser/signin/signin_manager.h" |
25 #include "chrome/browser/signin/signin_manager_factory.h" | 25 #include "chrome/browser/signin/signin_manager_factory.h" |
26 #include "chrome/browser/signin/token_service_factory.h" | 26 #include "chrome/browser/signin/token_service_factory.h" |
27 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" | 27 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" |
28 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" | 28 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" |
29 #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h" | 29 #include "chrome/browser/sync/glue/autofill_profile_data_type_controller.h" |
30 #include "chrome/browser/sync/glue/data_type_controller.h" | 30 #include "chrome/browser/sync/glue/data_type_controller.h" |
31 #include "chrome/browser/sync/glue/generic_change_processor.h" | 31 #include "chrome/browser/sync/glue/generic_change_processor.h" |
32 #include "chrome/browser/sync/glue/shared_change_processor.h" | 32 #include "chrome/browser/sync/glue/shared_change_processor.h" |
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 std::vector<AutofillEntry> sync_entries; | 1402 std::vector<AutofillEntry> sync_entries; |
1403 std::vector<AutofillProfile> sync_profiles; | 1403 std::vector<AutofillProfile> sync_profiles; |
1404 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); | 1404 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); |
1405 EXPECT_EQ(3U, sync_entries.size()); | 1405 EXPECT_EQ(3U, sync_entries.size()); |
1406 EXPECT_EQ(0U, sync_profiles.size()); | 1406 EXPECT_EQ(0U, sync_profiles.size()); |
1407 for (size_t i = 0; i < sync_entries.size(); i++) { | 1407 for (size_t i = 0; i < sync_entries.size(); i++) { |
1408 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() | 1408 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() |
1409 << ", " << sync_entries[i].key().value(); | 1409 << ", " << sync_entries[i].key().value(); |
1410 } | 1410 } |
1411 } | 1411 } |
OLD | NEW |