OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_profile_syncable_ser
vice.h" | 5 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "components/autofill/core/browser/autofill_profile.h" | 15 #include "components/autofill/core/browser/autofill_profile.h" |
16 #include "components/autofill/core/browser/country_names.h" | 16 #include "components/autofill/core/browser/country_names.h" |
17 #include "components/autofill/core/browser/webdata/autofill_change.h" | 17 #include "components/autofill/core/browser/webdata/autofill_change.h" |
18 #include "components/autofill/core/common/autofill_constants.h" | 18 #include "components/autofill/core/common/autofill_constants.h" |
19 #include "sync/api/sync_error_factory.h" | 19 #include "components/sync/api/sync_error_factory.h" |
20 #include "sync/api/sync_error_factory_mock.h" | 20 #include "components/sync/api/sync_error_factory_mock.h" |
21 #include "sync/protocol/sync.pb.h" | 21 #include "components/sync/protocol/sync.pb.h" |
22 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 | 24 |
25 namespace autofill { | 25 namespace autofill { |
26 | 26 |
27 using ::testing::_; | 27 using ::testing::_; |
28 using ::testing::DoAll; | 28 using ::testing::DoAll; |
29 using ::testing::Eq; | 29 using ::testing::Eq; |
30 using ::testing::Return; | 30 using ::testing::Return; |
31 using ::testing::Property; | 31 using ::testing::Property; |
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 std::unique_ptr<syncer::SyncErrorFactory>( | 1331 std::unique_ptr<syncer::SyncErrorFactory>( |
1332 new syncer::SyncErrorFactoryMock())); | 1332 new syncer::SyncErrorFactoryMock())); |
1333 AutofillProfile server_profile(AutofillProfile::SERVER_PROFILE, "server-id"); | 1333 AutofillProfile server_profile(AutofillProfile::SERVER_PROFILE, "server-id"); |
1334 | 1334 |
1335 // Should not crash: | 1335 // Should not crash: |
1336 autofill_syncable_service_.AutofillProfileChanged(AutofillProfileChange( | 1336 autofill_syncable_service_.AutofillProfileChanged(AutofillProfileChange( |
1337 AutofillProfileChange::UPDATE, server_profile.guid(), &server_profile)); | 1337 AutofillProfileChange::UPDATE, server_profile.guid(), &server_profile)); |
1338 } | 1338 } |
1339 | 1339 |
1340 } // namespace autofill | 1340 } // namespace autofill |
OLD | NEW |