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 #ifndef CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ | 5 #ifndef CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ |
6 #define CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ | 6 #define CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... | |
29 ~ChromeRenderViewTest() override; | 29 ~ChromeRenderViewTest() override; |
30 | 30 |
31 protected: | 31 protected: |
32 // testing::Test | 32 // testing::Test |
33 void SetUp() override; | 33 void SetUp() override; |
34 void TearDown() override; | 34 void TearDown() override; |
35 content::ContentClient* CreateContentClient() override; | 35 content::ContentClient* CreateContentClient() override; |
36 content::ContentBrowserClient* CreateContentBrowserClient() override; | 36 content::ContentBrowserClient* CreateContentBrowserClient() override; |
37 content::ContentRendererClient* CreateContentRendererClient() override; | 37 content::ContentRendererClient* CreateContentRendererClient() override; |
38 | 38 |
39 // Is called by SetUp() to ensure all mojo interfaces impl ready for main | |
sky
2016/08/19 15:35:50
How about:
// Called from SetUp(). Override to reg
leonhsl(Using Gerrit)
2016/08/20 11:47:08
Done and thanks. This got clearer!
| |
40 // renderer frame before they are requested. | |
41 virtual void RegisterMainFrameRemoteInterfaces(); | |
42 | |
39 // Initializes commonly needed global state and renderer client parts. | 43 // Initializes commonly needed global state and renderer client parts. |
40 // Use when overriding CreateContentRendererClient. | 44 // Use when overriding CreateContentRendererClient. |
41 void InitChromeContentRendererClient(ChromeContentRendererClient* client); | 45 void InitChromeContentRendererClient(ChromeContentRendererClient* client); |
42 | 46 |
43 void EnableUserGestureSimulationForAutofill(); | 47 void EnableUserGestureSimulationForAutofill(); |
44 void DisableUserGestureSimulationForAutofill(); | 48 void DisableUserGestureSimulationForAutofill(); |
45 void WaitForAutofillDidAssociateFormControl(); | 49 void WaitForAutofillDidAssociateFormControl(); |
46 | 50 |
47 #if defined(ENABLE_EXTENSIONS) | 51 #if defined(ENABLE_EXTENSIONS) |
48 std::unique_ptr<extensions::DispatcherDelegate> | 52 std::unique_ptr<extensions::DispatcherDelegate> |
49 extension_dispatcher_delegate_; | 53 extension_dispatcher_delegate_; |
50 #endif | 54 #endif |
51 | 55 |
52 autofill::TestPasswordAutofillAgent* password_autofill_agent_; | 56 autofill::TestPasswordAutofillAgent* password_autofill_agent_; |
53 autofill::TestPasswordGenerationAgent* password_generation_; | 57 autofill::TestPasswordGenerationAgent* password_generation_; |
54 autofill::AutofillAgent* autofill_agent_; | 58 autofill::AutofillAgent* autofill_agent_; |
55 | 59 |
56 // Naked pointer as ownership is with content::RenderViewTest::render_thread_. | 60 // Naked pointer as ownership is with content::RenderViewTest::render_thread_. |
57 ChromeMockRenderThread* chrome_render_thread_; | 61 ChromeMockRenderThread* chrome_render_thread_; |
58 }; | 62 }; |
59 | 63 |
60 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ | 64 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ |
OLD | NEW |