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

Unified Diff: chrome/test/base/browser_with_test_window_test.h

Issue 2758323002: Broke out layout metric information from ViewsDelegate to LayoutProvider (Closed)
Patch Set: Final feedback addressed 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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/browser_with_test_window_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/browser_with_test_window_test.h
diff --git a/chrome/test/base/browser_with_test_window_test.h b/chrome/test/base/browser_with_test_window_test.h
index 18c5e06316bc7e5e199b419864dadd620bba0584..29177899148a4ac90d8d70358888f34a2f4ae25c 100644
--- a/chrome/test/base/browser_with_test_window_test.h
+++ b/chrome/test/base/browser_with_test_window_test.h
@@ -16,10 +16,16 @@
#include "content/public/test/test_renderer_host.h"
#include "testing/gtest/include/gtest/gtest.h"
+#if defined(TOOLKIT_VIEWS)
#if defined(OS_CHROMEOS)
+#include "ash/test/ash_test_helper.h"
+#include "ash/test/ash_test_views_delegate.h"
#include "chrome/browser/chromeos/login/users/scoped_test_user_manager.h"
#include "chrome/browser/chromeos/settings/cros_settings.h"
#include "chrome/browser/chromeos/settings/device_settings_service.h"
+#else
+#include "ui/views/test/scoped_views_test_helper.h"
+#endif
#endif
#if defined(OS_WIN)
@@ -28,17 +34,17 @@
class GURL;
+#if defined(TOOLKIT_VIEWS)
+namespace views {
+class TestViewsDelegate;
+}
#if defined(OS_CHROMEOS)
namespace ash {
namespace test {
class AshTestEnvironment;
-class AshTestHelper;
}
}
-#elif defined(TOOLKIT_VIEWS)
-namespace views {
-class ScopedViewsTestHelper;
-}
+#endif
#endif
namespace content {
@@ -144,6 +150,16 @@ class BrowserWithTestWindowTest : public testing::Test {
bool hosted_app,
BrowserWindow* browser_window);
+#if defined(TOOLKIT_VIEWS)
+ views::TestViewsDelegate* test_views_delegate() {
+#if defined(OS_CHROMEOS)
+ return ash_test_helper_->test_views_delegate();
+#else
+ return views_test_helper_->test_views_delegate();
+#endif
+ }
+#endif
+
private:
// We need to create a MessageLoop, otherwise a bunch of things fails.
content::TestBrowserThreadBundle thread_bundle_;
« no previous file with comments | « chrome/test/BUILD.gn ('k') | chrome/test/base/browser_with_test_window_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698