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 <algorithm> | 5 #include <algorithm> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/test/base/chrome_render_view_host_test_harness.h" | 10 #include "chrome/test/base/chrome_render_view_host_test_harness.h" |
11 #include "components/autofill/content/browser/autofill_driver_impl.h" | 11 #include "components/autofill/content/browser/autofill_driver_impl.h" |
12 #include "components/autofill/core/browser/autofill_common_test.h" | |
13 #include "components/autofill/core/browser/autofill_external_delegate.h" | 12 #include "components/autofill/core/browser/autofill_external_delegate.h" |
14 #include "components/autofill/core/browser/autofill_manager.h" | 13 #include "components/autofill/core/browser/autofill_manager.h" |
| 14 #include "components/autofill/core/browser/autofill_test_utils.h" |
15 #include "components/autofill/core/browser/test_autofill_manager_delegate.h" | 15 #include "components/autofill/core/browser/test_autofill_manager_delegate.h" |
16 #include "components/autofill/core/common/autofill_messages.h" | 16 #include "components/autofill/core/common/autofill_messages.h" |
17 #include "components/autofill/core/common/autofill_switches.h" | 17 #include "components/autofill/core/common/autofill_switches.h" |
18 #include "components/autofill/core/common/form_data_predictions.h" | 18 #include "components/autofill/core/common/form_data_predictions.h" |
19 #include "content/public/browser/navigation_details.h" | 19 #include "content/public/browser/navigation_details.h" |
20 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
21 #include "content/public/common/frame_navigate_params.h" | 21 #include "content/public/common/frame_navigate_params.h" |
22 #include "content/public/test/mock_render_process_host.h" | 22 #include "content/public/test/mock_render_process_host.h" |
23 #include "ipc/ipc_test_sink.h" | 23 #include "ipc/ipc_test_sink.h" |
24 #include "testing/gmock/include/gmock/gmock.h" | 24 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 driver_->RendererShouldClearFilledForm(); | 215 driver_->RendererShouldClearFilledForm(); |
216 EXPECT_TRUE(HasMessageMatchingID(AutofillMsg_ClearForm::ID)); | 216 EXPECT_TRUE(HasMessageMatchingID(AutofillMsg_ClearForm::ID)); |
217 } | 217 } |
218 | 218 |
219 TEST_F(AutofillDriverImplTest, ClearPreviewedFormSentToRenderer) { | 219 TEST_F(AutofillDriverImplTest, ClearPreviewedFormSentToRenderer) { |
220 driver_->RendererShouldClearPreviewedForm(); | 220 driver_->RendererShouldClearPreviewedForm(); |
221 EXPECT_TRUE(HasMessageMatchingID(AutofillMsg_ClearPreviewedForm::ID)); | 221 EXPECT_TRUE(HasMessageMatchingID(AutofillMsg_ClearPreviewedForm::ID)); |
222 } | 222 } |
223 | 223 |
224 } // namespace autofill | 224 } // namespace autofill |
OLD | NEW |