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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc

Issue 2832153003: Move calling of shared browser test methods like SetUpOnMainThread/TearDownOnMainThread/RunTestOn... (Closed)
Patch Set: sync Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc
index f7a63ac7f9ff9925e532759b9c8b9d4c61dfa971..55ab62259789e4f429f04da45693f7aced57410b 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc
@@ -224,13 +224,13 @@ class LauncherPlatformAppBrowserTest
~LauncherPlatformAppBrowserTest() override {}
- void RunTestOnMainThreadLoop() override {
+ void SetUpOnMainThread() override {
// Ensure ash starts the session and creates the shelf and controller.
SessionControllerClient::FlushForTesting();
controller_ = GetChromeLauncherControllerImpl();
ASSERT_TRUE(controller_);
- return extensions::PlatformAppBrowserTest::RunTestOnMainThreadLoop();
+ extensions::PlatformAppBrowserTest::SetUpOnMainThread();
}
ash::ShelfModel* shelf_model() { return ash::Shell::Get()->shelf_model(); }
@@ -281,7 +281,7 @@ class ShelfAppBrowserTest : public ExtensionBrowserTest {
~ShelfAppBrowserTest() override {}
- void RunTestOnMainThreadLoop() override {
+ void SetUpOnMainThread() override {
// Ensure ash starts the session and creates the shelf and controller.
SessionControllerClient::FlushForTesting();
@@ -290,7 +290,7 @@ class ShelfAppBrowserTest : public ExtensionBrowserTest {
model_ = ash::Shell::Get()->shelf_model();
controller_ = GetChromeLauncherControllerImpl();
ASSERT_TRUE(controller_);
- return ExtensionBrowserTest::RunTestOnMainThreadLoop();
+ ExtensionBrowserTest::SetUpOnMainThread();
}
size_t NumberOfDetectedLauncherBrowsers(bool show_all_tabs) {

Powered by Google App Engine
This is Rietveld 408576698