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

Unified Diff: ash/test/ash_test_base.cc

Issue 2296973002: Moves ash content specific tests into ash_content_unittests (Closed)
Patch Set: add dep to base test suport Created 4 years, 3 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
« no previous file with comments | « ash/test/ash_test_base.h ('k') | ash/test/ash_test_environment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index 767a0add927b5f657700fb607c811a25e97dadf4..ecf6cd36734aa538d58d6604e7cfd5fda5a6b72c 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -16,6 +16,7 @@
#include "ash/ime/input_method_event_handler.h"
#include "ash/shell.h"
#include "ash/shell/toplevel_window.h"
+#include "ash/test/ash_test_environment.h"
#include "ash/test/ash_test_helper.h"
#include "ash/test/display_manager_test_api.h"
#include "ash/test/test_session_state_delegate.h"
@@ -102,10 +103,11 @@ AshTestBase::AshTestBase()
gfx::InitializeThreadedX11();
#endif
- thread_bundle_.reset(new content::TestBrowserThreadBundle);
+ ash_test_environment_ = AshTestEnvironment::Create();
+
// Must initialize |ash_test_helper_| here because some tests rely on
// AshTestBase methods before they call AshTestBase::SetUp().
- ash_test_helper_.reset(new AshTestHelper(base::MessageLoopForUI::current()));
+ ash_test_helper_.reset(new AshTestHelper(ash_test_environment_.get()));
}
AshTestBase::~AshTestBase() {
« no previous file with comments | « ash/test/ash_test_base.h ('k') | ash/test/ash_test_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698