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 "chrome/test/base/chrome_render_view_test.h" | 5 #include "chrome/test/base/chrome_render_view_test.h" |
6 | 6 |
7 #include "base/debug/leak_annotations.h" | 7 #include "base/debug/leak_annotations.h" |
| 8 #include "base/macros.h" |
8 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
9 #include "chrome/browser/chrome_content_browser_client.h" | 10 #include "chrome/browser/chrome_content_browser_client.h" |
10 #include "chrome/common/chrome_content_client.h" | 11 #include "chrome/common/chrome_content_client.h" |
11 #include "chrome/renderer/chrome_content_renderer_client.h" | 12 #include "chrome/renderer/chrome_content_renderer_client.h" |
12 #include "chrome/renderer/spellchecker/spellcheck.h" | 13 #include "chrome/renderer/spellchecker/spellcheck.h" |
13 #include "chrome/test/base/chrome_unit_test_suite.h" | 14 #include "chrome/test/base/chrome_unit_test_suite.h" |
14 #include "components/autofill/content/renderer/autofill_agent.h" | 15 #include "components/autofill/content/renderer/autofill_agent.h" |
15 #include "components/autofill/content/renderer/password_autofill_agent.h" | 16 #include "components/autofill/content/renderer/password_autofill_agent.h" |
16 #include "components/autofill/content/renderer/test_password_autofill_agent.h" | 17 #include "components/autofill/content/renderer/test_password_autofill_agent.h" |
17 #include "components/autofill/content/renderer/test_password_generation_agent.h" | 18 #include "components/autofill/content/renderer/test_password_generation_agent.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 153 |
153 void ChromeRenderViewTest::EnableUserGestureSimulationForAutofill() { | 154 void ChromeRenderViewTest::EnableUserGestureSimulationForAutofill() { |
154 EXPECT_CALL(*(static_cast<MockAutofillAgent*>(autofill_agent_)), | 155 EXPECT_CALL(*(static_cast<MockAutofillAgent*>(autofill_agent_)), |
155 IsUserGesture()).WillRepeatedly(Return(true)); | 156 IsUserGesture()).WillRepeatedly(Return(true)); |
156 } | 157 } |
157 | 158 |
158 void ChromeRenderViewTest::DisableUserGestureSimulationForAutofill() { | 159 void ChromeRenderViewTest::DisableUserGestureSimulationForAutofill() { |
159 EXPECT_CALL(*(static_cast<MockAutofillAgent*>(autofill_agent_)), | 160 EXPECT_CALL(*(static_cast<MockAutofillAgent*>(autofill_agent_)), |
160 IsUserGesture()).WillRepeatedly(Return(false)); | 161 IsUserGesture()).WillRepeatedly(Return(false)); |
161 } | 162 } |
OLD | NEW |