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

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_apitest.h

Issue 2832153003: Move calling of shared browser test methods like SetUpOnMainThread/TearDownOnMainThread/RunTestOn... (Closed)
Patch Set: sync Created 3 years, 7 months 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
OLDNEW
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 #include "base/values.h" 5 #include "base/values.h"
6 #include "components/guest_view/browser/test_guest_view_manager.h" 6 #include "components/guest_view/browser/test_guest_view_manager.h"
7 #include "extensions/shell/test/shell_test.h" 7 #include "extensions/shell/test/shell_test.h"
8 #include "ui/gfx/switches.h" 8 #include "ui/gfx/switches.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 26 matching lines...) Expand all
37 37
38 // Returns the GuestViewManager singleton. 38 // Returns the GuestViewManager singleton.
39 guest_view::TestGuestViewManager* GetGuestViewManager(); 39 guest_view::TestGuestViewManager* GetGuestViewManager();
40 40
41 content::WebContents* GetGuestWebContents(); 41 content::WebContents* GetGuestWebContents();
42 void SendMessageToGuestAndWait(const std::string& message, 42 void SendMessageToGuestAndWait(const std::string& message,
43 const std::string& wait_message); 43 const std::string& wait_message);
44 void SendMessageToEmbedder(const std::string& message); 44 void SendMessageToEmbedder(const std::string& message);
45 45
46 // content::BrowserTestBase implementation. 46 // content::BrowserTestBase implementation.
47 void RunTestOnMainThreadLoop() override;
48 void SetUpCommandLine(base::CommandLine* command_line) override; 47 void SetUpCommandLine(base::CommandLine* command_line) override;
49 void SetUpOnMainThread() override; 48 void SetUpOnMainThread() override;
50 void TearDownOnMainThread() override; 49 void TearDownOnMainThread() override;
51 50
52 content::WebContents* embedder_web_contents_; 51 content::WebContents* embedder_web_contents_;
53 guest_view::TestGuestViewManagerFactory factory_; 52 guest_view::TestGuestViewManagerFactory factory_;
54 base::DictionaryValue test_config_; 53 base::DictionaryValue test_config_;
55 54
56 private: 55 private:
57 content::WebContents* GetFirstAppWindowWebContents(); 56 content::WebContents* GetFirstAppWindowWebContents();
58 }; 57 };
59 58
60 class WebViewDPIAPITest : public WebViewAPITest { 59 class WebViewDPIAPITest : public WebViewAPITest {
61 protected: 60 protected:
62 void SetUp() override; 61 void SetUp() override;
63 static float scale() { return 2.0f; } 62 static float scale() { return 2.0f; }
64 }; 63 };
65 64
66 } // namespace extensions 65 } // namespace extensions
OLDNEW
« no previous file with comments | « content/public/test/content_browser_test.cc ('k') | extensions/browser/guest_view/web_view/web_view_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698