OLD | NEW |
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 <map> | 5 #include <map> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "components/autofill/core/browser/autofill_metrics.h" | 43 #include "components/autofill/core/browser/autofill_metrics.h" |
44 #include "components/autofill/core/browser/autofill_test_utils.h" | 44 #include "components/autofill/core/browser/autofill_test_utils.h" |
45 #include "components/autofill/core/browser/test_personal_data_manager.h" | 45 #include "components/autofill/core/browser/test_personal_data_manager.h" |
46 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 46 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
47 #include "components/autofill/core/common/autofill_switches.h" | 47 #include "components/autofill/core/common/autofill_switches.h" |
48 #include "components/autofill/core/common/form_data.h" | 48 #include "components/autofill/core/common/form_data.h" |
49 #include "components/user_prefs/user_prefs.h" | 49 #include "components/user_prefs/user_prefs.h" |
50 #include "content/public/browser/web_contents.h" | 50 #include "content/public/browser/web_contents.h" |
51 #include "content/public/test/mock_render_process_host.h" | 51 #include "content/public/test/mock_render_process_host.h" |
52 #include "google_apis/gaia/google_service_auth_error.h" | 52 #include "google_apis/gaia/google_service_auth_error.h" |
| 53 #include "grit/component_scaled_resources.h" |
53 #include "grit/generated_resources.h" | 54 #include "grit/generated_resources.h" |
54 #include "grit/webkit_resources.h" | |
55 #include "testing/gmock/include/gmock/gmock.h" | 55 #include "testing/gmock/include/gmock/gmock.h" |
56 #include "testing/gtest/include/gtest/gtest.h" | 56 #include "testing/gtest/include/gtest/gtest.h" |
57 #include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/addre
ss_data.h" | 57 #include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/addre
ss_data.h" |
58 #include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/addre
ss_validator.h" | 58 #include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/addre
ss_validator.h" |
59 #include "ui/base/resource/resource_bundle.h" | 59 #include "ui/base/resource/resource_bundle.h" |
60 | 60 |
61 #if defined(OS_WIN) | 61 #if defined(OS_WIN) |
62 #include "ui/base/win/scoped_ole_initializer.h" | 62 #include "ui/base/win/scoped_ole_initializer.h" |
63 #endif | 63 #endif |
64 | 64 |
(...skipping 3167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3232 // Profiles saved while rules are unavailable shouldn't be verified. | 3232 // Profiles saved while rules are unavailable shouldn't be verified. |
3233 const AutofillProfile& imported_profile = | 3233 const AutofillProfile& imported_profile = |
3234 controller()->GetTestingManager()->imported_profile(); | 3234 controller()->GetTestingManager()->imported_profile(); |
3235 ASSERT_EQ(imported_profile.GetRawInfo(NAME_FULL), | 3235 ASSERT_EQ(imported_profile.GetRawInfo(NAME_FULL), |
3236 full_profile.GetRawInfo(NAME_FULL)); | 3236 full_profile.GetRawInfo(NAME_FULL)); |
3237 EXPECT_EQ(imported_profile.origin(), GURL(kSourceUrl).GetOrigin().spec()); | 3237 EXPECT_EQ(imported_profile.origin(), GURL(kSourceUrl).GetOrigin().spec()); |
3238 EXPECT_FALSE(imported_profile.IsVerified()); | 3238 EXPECT_FALSE(imported_profile.IsVerified()); |
3239 } | 3239 } |
3240 | 3240 |
3241 } // namespace autofill | 3241 } // namespace autofill |
OLD | NEW |