OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/strings/utf_string_conversions.h" | 5 #include "base/strings/utf_string_conversions.h" |
6 #include "base/tuple.h" | 6 #include "base/tuple.h" |
7 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 7 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
8 #include "chrome/test/base/testing_profile.h" | 8 #include "chrome/test/base/testing_profile.h" |
9 #include "components/autofill/browser/autofill_common_test.h" | 9 #include "components/autofill/browser/autofill_common_test.h" |
10 #include "components/autofill/browser/autofill_manager.h" | 10 #include "components/autofill/browser/autofill_manager.h" |
11 #include "components/autofill/browser/autofill_metrics.h" | 11 #include "components/autofill/browser/autofill_metrics.h" |
12 #include "components/autofill/browser/form_structure.h" | 12 #include "components/autofill/browser/form_structure.h" |
13 #include "components/autofill/browser/test_autofill_manager_delegate.h" | 13 #include "components/autofill/browser/test_autofill_manager_delegate.h" |
14 #include "components/autofill/common/autofill_messages.h" | |
15 #include "components/autofill/common/form_data.h" | |
16 #include "components/autofill/content/browser/autocheckout_manager.h" | 14 #include "components/autofill/content/browser/autocheckout_manager.h" |
| 15 #include "components/autofill/shared/autofill_messages.h" |
| 16 #include "components/autofill/shared/form_data.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/test/mock_render_process_host.h" | 18 #include "content/public/test/mock_render_process_host.h" |
19 #include "content/public/test/test_browser_thread.h" | 19 #include "content/public/test/test_browser_thread.h" |
20 #include "content/public/test/test_utils.h" | 20 #include "content/public/test/test_utils.h" |
21 #include "ipc/ipc_test_sink.h" | 21 #include "ipc/ipc_test_sink.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 using content::BrowserThread; | 25 using content::BrowserThread; |
26 | 26 |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 AutofillMetrics::AUTOCHECKOUT_BUY_FLOW_SUCCESS)).Times(1); | 819 AutofillMetrics::AUTOCHECKOUT_BUY_FLOW_SUCCESS)).Times(1); |
820 autocheckout_manager_->MaybeShowAutocheckoutDialog(frame_url, | 820 autocheckout_manager_->MaybeShowAutocheckoutDialog(frame_url, |
821 ssl_status, | 821 ssl_status, |
822 true); | 822 true); |
823 CheckFillFormsAndClickIpc(); | 823 CheckFillFormsAndClickIpc(); |
824 EXPECT_FALSE(autocheckout_manager_->in_autocheckout_flow()); | 824 EXPECT_FALSE(autocheckout_manager_->in_autocheckout_flow()); |
825 EXPECT_TRUE(autofill_manager_delegate_->request_autocomplete_dialog_open()); | 825 EXPECT_TRUE(autofill_manager_delegate_->request_autocomplete_dialog_open()); |
826 } | 826 } |
827 | 827 |
828 } // namespace autofill | 828 } // namespace autofill |
OLD | NEW |