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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_wallet_metadata_syncable_service_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/autofill/core/browser/webdata/autofill_wallet_metadata_sync able_service.h" 5 #include "components/autofill/core/browser/webdata/autofill_wallet_metadata_sync able_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/base64.h" 13 #include "base/base64.h"
14 #include "base/containers/scoped_ptr_hash_map.h" 14 #include "base/containers/scoped_ptr_hash_map.h"
15 #include "base/location.h" 15 #include "base/location.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/ptr_util.h" 17 #include "base/memory/ptr_util.h"
18 #include "base/numerics/safe_conversions.h" 18 #include "base/numerics/safe_conversions.h"
19 #include "base/time/time.h" 19 #include "base/time/time.h"
20 #include "components/autofill/core/browser/autofill_profile.h" 20 #include "components/autofill/core/browser/autofill_profile.h"
21 #include "components/autofill/core/browser/credit_card.h" 21 #include "components/autofill/core/browser/credit_card.h"
22 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h" 22 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h"
23 #include "sync/api/sync_change.h" 23 #include "components/sync/api/sync_change.h"
24 #include "sync/api/sync_change_processor_wrapper_for_test.h" 24 #include "components/sync/api/sync_change_processor_wrapper_for_test.h"
25 #include "sync/api/sync_error_factory_mock.h" 25 #include "components/sync/api/sync_error_factory_mock.h"
26 #include "sync/protocol/autofill_specifics.pb.h" 26 #include "components/sync/protocol/autofill_specifics.pb.h"
27 #include "sync/protocol/sync.pb.h" 27 #include "components/sync/protocol/sync.pb.h"
28 #include "testing/gmock/include/gmock/gmock.h" 28 #include "testing/gmock/include/gmock/gmock.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 namespace autofill { 31 namespace autofill {
32 namespace { 32 namespace {
33 33
34 using testing::DoAll; 34 using testing::DoAll;
35 using testing::ElementsAre; 35 using testing::ElementsAre;
36 using testing::Invoke; 36 using testing::Invoke;
37 using testing::NiceMock; 37 using testing::NiceMock;
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 EXPECT_CALL(local_, 871 EXPECT_CALL(local_,
872 UpdateAddressStats(AutofillMetadataMatches(kAddr2, 13, 14))); 872 UpdateAddressStats(AutofillMetadataMatches(kAddr2, 13, 14)));
873 EXPECT_CALL(local_, UpdateCardStats(AutofillMetadataMatches(kCard2, 15, 16))); 873 EXPECT_CALL(local_, UpdateCardStats(AutofillMetadataMatches(kCard2, 15, 16)));
874 EXPECT_CALL(local_, SendChangesToSyncServer(_)).Times(0); 874 EXPECT_CALL(local_, SendChangesToSyncServer(_)).Times(0);
875 875
876 local_.AutofillMultipleChanged(); 876 local_.AutofillMultipleChanged();
877 } 877 }
878 878
879 } // namespace 879 } // namespace
880 } // namespace autofill 880 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698