Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: chrome/test/base/chrome_render_view_test.h

Issue 2479593006: Move enable extensions define to a build flag. (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/chrome_render_view_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #include "chrome/renderer/chrome_mock_render_thread.h" 11 #include "chrome/renderer/chrome_mock_render_thread.h"
12 #include "content/public/test/render_view_test.h" 12 #include "content/public/test/render_view_test.h"
13 #include "extensions/features/features.h"
13 14
14 class ChromeContentRendererClient; 15 class ChromeContentRendererClient;
15 16
16 namespace autofill { 17 namespace autofill {
17 class AutofillAgent; 18 class AutofillAgent;
18 class TestPasswordAutofillAgent; 19 class TestPasswordAutofillAgent;
19 class TestPasswordGenerationAgent; 20 class TestPasswordGenerationAgent;
20 } 21 }
21 22
22 namespace extensions { 23 namespace extensions {
(...skipping 23 matching lines...) Expand all
46 void EnableUserGestureSimulationForAutofill(); 47 void EnableUserGestureSimulationForAutofill();
47 void DisableUserGestureSimulationForAutofill(); 48 void DisableUserGestureSimulationForAutofill();
48 void WaitForAutofillDidAssociateFormControl(); 49 void WaitForAutofillDidAssociateFormControl();
49 50
50 // Tests which need to handle IPC's sent to the browser should override 51 // Tests which need to handle IPC's sent to the browser should override
51 // this method and return a subclass of ChromeMockRenderThread. 52 // this method and return a subclass of ChromeMockRenderThread.
52 // The ChromeMockRenderThread pointer is owned by the ChromeRenderViewTest 53 // The ChromeMockRenderThread pointer is owned by the ChromeRenderViewTest
53 // class. 54 // class.
54 virtual ChromeMockRenderThread* CreateMockRenderThread(); 55 virtual ChromeMockRenderThread* CreateMockRenderThread();
55 56
56 #if defined(ENABLE_EXTENSIONS) 57 #if BUILDFLAG(ENABLE_EXTENSIONS)
57 std::unique_ptr<extensions::DispatcherDelegate> 58 std::unique_ptr<extensions::DispatcherDelegate>
58 extension_dispatcher_delegate_; 59 extension_dispatcher_delegate_;
59 #endif 60 #endif
60 61
61 autofill::TestPasswordAutofillAgent* password_autofill_agent_; 62 autofill::TestPasswordAutofillAgent* password_autofill_agent_;
62 autofill::TestPasswordGenerationAgent* password_generation_; 63 autofill::TestPasswordGenerationAgent* password_generation_;
63 autofill::AutofillAgent* autofill_agent_; 64 autofill::AutofillAgent* autofill_agent_;
64 65
65 // Naked pointer as ownership is with content::RenderViewTest::render_thread_. 66 // Naked pointer as ownership is with content::RenderViewTest::render_thread_.
66 ChromeMockRenderThread* chrome_render_thread_; 67 ChromeMockRenderThread* chrome_render_thread_;
67 }; 68 };
68 69
69 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_ 70 #endif // CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/chrome_render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698