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

Unified Diff: chrome/test/base/ash_test_environment_chrome.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: chrome/test/base/ash_test_environment_chrome.cc
diff --git a/chrome/test/base/ash_test_environment_chrome.cc b/chrome/test/base/ash_test_environment_chrome.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d002600e120454ab243b4ac2671a58be3673cce0
--- /dev/null
+++ b/chrome/test/base/ash_test_environment_chrome.cc
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/test/base/ash_test_environment_chrome.h"
+
+#include "ash/test/ash_test_views_delegate.h"
+#include "base/memory/ptr_util.h"
+#include "base/message_loop/message_loop.h"
+#include "content/public/browser/browser_thread.h"
+#include "ui/views/views_delegate.h"
+
+AshTestEnvironmentChrome::AshTestEnvironmentChrome() {}
+
+AshTestEnvironmentChrome::~AshTestEnvironmentChrome() {}
+
+base::SequencedWorkerPool* AshTestEnvironmentChrome::GetBlockingPool() {
+ return content::BrowserThread::GetBlockingPool();
+}
+
+std::unique_ptr<views::ViewsDelegate>
+AshTestEnvironmentChrome::CreateViewsDelegate() {
+ return base::MakeUnique<ash::test::AshTestViewsDelegate>();
+}

Powered by Google App Engine
This is Rietveld 408576698