Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / test / base / chrome_render_view_test.h
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_
6 #define CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_
7
8 #include <string>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/renderer/chrome_mock_render_thread.h"
12 #include "content/public/test/render_view_test.h"
13
14 namespace autofill {
15 class AutofillAgent;
16 class TestPasswordAutofillAgent;
17 class TestPasswordGenerationAgent;
18 }
19
20 namespace extensions {
21 class DispatcherDelegate;
22 }
23
24 class ChromeRenderViewTest : public content::RenderViewTest {
25  public:
26   ChromeRenderViewTest();
27   ~ChromeRenderViewTest() override;
28
29  protected:
30   // testing::Test
31   void SetUp() override;
32   void TearDown() override;
33   content::ContentClient* CreateContentClient() override;
34   content::ContentBrowserClient* CreateContentBrowserClient() override;
35   content::ContentRendererClient* CreateContentRendererClient() override;
36
37 #if defined(ENABLE_EXTENSIONS)
38   scoped_ptr<extensions::DispatcherDelegate> extension_dispatcher_delegate_;
39 #endif
40
41   autofill::TestPasswordAutofillAgent* password_autofill_agent_;
42   autofill::TestPasswordGenerationAgent* password_generation_;
43   autofill::AutofillAgent* autofill_agent_;
44
45   // Naked pointer as ownership is with content::RenderViewTest::render_thread_.
46   ChromeMockRenderThread* chrome_render_thread_;
47 };
48
49 #endif  // CHROME_TEST_BASE_CHROME_RENDER_VIEW_TEST_H_