OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_GUEST_VIEW_TEST_GUEST_VIEW_MANAGER_H_ | 5 #ifndef COMPONENTS_GUEST_VIEW_BROWSER_TEST_GUEST_VIEW_MANAGER_H_ |
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_TEST_GUEST_VIEW_MANAGER_H_ | 6 #define COMPONENTS_GUEST_VIEW_BROWSER_TEST_GUEST_VIEW_MANAGER_H_ |
7 | 7 |
8 #include "base/memory/linked_ptr.h" | 8 #include "base/memory/linked_ptr.h" |
| 9 #include "components/guest_view/browser/guest_view_manager.h" |
| 10 #include "components/guest_view/browser/guest_view_manager_factory.h" |
9 #include "content/public/test/browser_test_utils.h" | 11 #include "content/public/test/browser_test_utils.h" |
10 #include "content/public/test/test_utils.h" | 12 #include "content/public/test/test_utils.h" |
11 #include "extensions/browser/guest_view/guest_view_manager.h" | |
12 #include "extensions/browser/guest_view/guest_view_manager_factory.h" | |
13 | 13 |
14 namespace extensions { | 14 namespace guestview { |
15 | 15 |
16 class TestGuestViewManager : public GuestViewManager { | 16 class TestGuestViewManager : public GuestViewManager { |
17 public: | 17 public: |
18 TestGuestViewManager( | 18 TestGuestViewManager( |
19 content::BrowserContext* context, | 19 content::BrowserContext* context, |
20 scoped_ptr<guestview::GuestViewManagerDelegate> delegate); | 20 scoped_ptr<guestview::GuestViewManagerDelegate> delegate); |
21 ~TestGuestViewManager() override; | 21 ~TestGuestViewManager() override; |
22 | 22 |
23 void WaitForAllGuestsDeleted(); | 23 void WaitForAllGuestsDeleted(); |
24 content::WebContents* WaitForSingleGuestCreated(); | 24 content::WebContents* WaitForSingleGuestCreated(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 GuestViewManager* CreateGuestViewManager( | 70 GuestViewManager* CreateGuestViewManager( |
71 content::BrowserContext* context, | 71 content::BrowserContext* context, |
72 scoped_ptr<guestview::GuestViewManagerDelegate> delegate) override; | 72 scoped_ptr<guestview::GuestViewManagerDelegate> delegate) override; |
73 | 73 |
74 private: | 74 private: |
75 TestGuestViewManager* test_guest_view_manager_; | 75 TestGuestViewManager* test_guest_view_manager_; |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(TestGuestViewManagerFactory); | 77 DISALLOW_COPY_AND_ASSIGN(TestGuestViewManagerFactory); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace extensions | 80 } // namespace guestview |
81 | 81 |
82 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_TEST_GUEST_VIEW_MANAGER_H_ | 82 #endif // COMPONENTS_GUEST_VIEW_BROWSER_TEST_GUEST_VIEW_MANAGER_H_ |
OLD | NEW |