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

Unified Diff: ash/content/display/screen_orientation_controller_chromeos_unittest.cc

Issue 2296973002: Moves ash content specific tests into ash_content_unittests (Closed)
Patch Set: remove GetMessageLoop and merge Created 4 years, 4 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: ash/content/display/screen_orientation_controller_chromeos_unittest.cc
diff --git a/ash/content/display/screen_orientation_controller_chromeos_unittest.cc b/ash/content/display/screen_orientation_controller_chromeos_unittest.cc
index 77171fa4fc8432f4c6a02727a286031d61ca902e..2802067b01ebdda81b7e48f74cec0a4aab013e6e 100644
--- a/ash/content/display/screen_orientation_controller_chromeos_unittest.cc
+++ b/ash/content/display/screen_orientation_controller_chromeos_unittest.cc
@@ -14,6 +14,7 @@
#include "ash/display/display_manager.h"
#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
+#include "ash/test/ash_test_environment_content.h"
#include "ash/test/ash_test_helper.h"
#include "ash/test/content/test_shell_content_state.h"
#include "ash/test/display_manager_test_api.h"
@@ -108,8 +109,10 @@ class ScreenOrientationControllerTest : public test::AshTestBase {
~ScreenOrientationControllerTest() override;
content::ScreenOrientationDelegate* delegate() {
- return ash_test_helper()
- ->test_shell_content_state()
+ test::AshTestEnvironmentContent* test_environment_content =
+ static_cast<test::AshTestEnvironmentContent*>(
+ ash_test_helper()->ash_test_environment());
+ return test_environment_content->test_shell_content_state()
->screen_orientation_delegate();
}

Powered by Google App Engine
This is Rietveld 408576698