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

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

Issue 777863002: Introduce new component webdata_services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile as static_library instead of component Created 6 years 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
OLDNEW
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 <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "chrome/test/base/testing_profile_manager.h" 42 #include "chrome/test/base/testing_profile_manager.h"
43 #include "components/autofill/core/browser/autofill_test_utils.h" 43 #include "components/autofill/core/browser/autofill_test_utils.h"
44 #include "components/autofill/core/browser/personal_data_manager.h" 44 #include "components/autofill/core/browser/personal_data_manager.h"
45 #include "components/autofill/core/browser/webdata/autofill_change.h" 45 #include "components/autofill/core/browser/webdata/autofill_change.h"
46 #include "components/autofill/core/browser/webdata/autofill_entry.h" 46 #include "components/autofill/core/browser/webdata/autofill_entry.h"
47 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser vice.h" 47 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser vice.h"
48 #include "components/autofill/core/browser/webdata/autofill_table.h" 48 #include "components/autofill/core/browser/webdata/autofill_table.h"
49 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 49 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
50 #include "components/signin/core/browser/signin_manager.h" 50 #include "components/signin/core/browser/signin_manager.h"
51 #include "components/sync_driver/data_type_controller.h" 51 #include "components/sync_driver/data_type_controller.h"
52 #include "components/webdata/common/web_data_service_test_util.h"
53 #include "components/webdata/common/web_database.h" 52 #include "components/webdata/common/web_database.h"
53 #include "components/webdata_services/web_data_service_test_util.h"
54 #include "content/public/test/test_browser_thread.h" 54 #include "content/public/test/test_browser_thread.h"
55 #include "google_apis/gaia/gaia_constants.h" 55 #include "google_apis/gaia/gaia_constants.h"
56 #include "sync/internal_api/public/base/model_type.h" 56 #include "sync/internal_api/public/base/model_type.h"
57 #include "sync/internal_api/public/data_type_debug_info_listener.h" 57 #include "sync/internal_api/public/data_type_debug_info_listener.h"
58 #include "sync/internal_api/public/read_node.h" 58 #include "sync/internal_api/public/read_node.h"
59 #include "sync/internal_api/public/read_transaction.h" 59 #include "sync/internal_api/public/read_transaction.h"
60 #include "sync/internal_api/public/write_node.h" 60 #include "sync/internal_api/public/write_node.h"
61 #include "sync/internal_api/public/write_transaction.h" 61 #include "sync/internal_api/public/write_transaction.h"
62 #include "sync/protocol/autofill_specifics.pb.h" 62 #include "sync/protocol/autofill_specifics.pb.h"
63 #include "sync/syncable/mutable_entry.h" 63 #include "sync/syncable/mutable_entry.h"
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 std::vector<AutofillEntry> sync_entries; 1371 std::vector<AutofillEntry> sync_entries;
1372 std::vector<AutofillProfile> sync_profiles; 1372 std::vector<AutofillProfile> sync_profiles;
1373 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles)); 1373 ASSERT_TRUE(GetAutofillEntriesFromSyncDB(&sync_entries, &sync_profiles));
1374 EXPECT_EQ(3U, sync_entries.size()); 1374 EXPECT_EQ(3U, sync_entries.size());
1375 EXPECT_EQ(0U, sync_profiles.size()); 1375 EXPECT_EQ(0U, sync_profiles.size());
1376 for (size_t i = 0; i < sync_entries.size(); i++) { 1376 for (size_t i = 0; i < sync_entries.size(); i++) {
1377 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name() 1377 DVLOG(1) << "Entry " << i << ": " << sync_entries[i].key().name()
1378 << ", " << sync_entries[i].key().value(); 1378 << ", " << sync_entries[i].key().value();
1379 } 1379 }
1380 } 1380 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc ('k') | chrome/browser/webdata/web_data_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698