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/webkit_resources.h" | 53 #include "grit/component_resources.h" |
54 #include "testing/gmock/include/gmock/gmock.h" | 54 #include "testing/gmock/include/gmock/gmock.h" |
55 #include "testing/gtest/include/gtest/gtest.h" | 55 #include "testing/gtest/include/gtest/gtest.h" |
56 #include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/addre
ss_data.h" | 56 #include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/addre
ss_data.h" |
57 #include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/addre
ss_validator.h" | 57 #include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/addre
ss_validator.h" |
58 #include "ui/base/resource/resource_bundle.h" | 58 #include "ui/base/resource/resource_bundle.h" |
59 | 59 |
60 #if defined(OS_WIN) | 60 #if defined(OS_WIN) |
61 #include "ui/base/win/scoped_ole_initializer.h" | 61 #include "ui/base/win/scoped_ole_initializer.h" |
62 #endif | 62 #endif |
63 | 63 |
(...skipping 3104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3168 // Profiles saved while rules are unavailable shouldn't be verified. | 3168 // Profiles saved while rules are unavailable shouldn't be verified. |
3169 const AutofillProfile& imported_profile = | 3169 const AutofillProfile& imported_profile = |
3170 controller()->GetTestingManager()->imported_profile(); | 3170 controller()->GetTestingManager()->imported_profile(); |
3171 ASSERT_EQ(imported_profile.GetRawInfo(NAME_FULL), | 3171 ASSERT_EQ(imported_profile.GetRawInfo(NAME_FULL), |
3172 full_profile.GetRawInfo(NAME_FULL)); | 3172 full_profile.GetRawInfo(NAME_FULL)); |
3173 EXPECT_EQ(imported_profile.origin(), GURL(kSourceUrl).GetOrigin().spec()); | 3173 EXPECT_EQ(imported_profile.origin(), GURL(kSourceUrl).GetOrigin().spec()); |
3174 EXPECT_FALSE(imported_profile.IsVerified()); | 3174 EXPECT_FALSE(imported_profile.IsVerified()); |
3175 } | 3175 } |
3176 | 3176 |
3177 } // namespace autofill | 3177 } // namespace autofill |
OLD | NEW |