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

Unified Diff: chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc

Issue 24733003: Update defaults for InstantExtended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up test. Created 7 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
Index: chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc
diff --git a/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc b/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc
index 9874fba737a6c2b92dc989da11faa657d05c419a..a4816be957b1dea2147ab4f24646f8e41a0d182b 100644
--- a/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc
+++ b/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc
@@ -14,6 +14,7 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/render_view_test.h"
+#include "content/public/test/test_renderer_host.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/aura/client/activation_client.h"
#include "ui/aura/client/aura_constants.h"
@@ -21,8 +22,6 @@
#include "ui/aura/root_window.h"
#include "ui/aura/test/test_windows.h"
-typedef ash::test::AshTestBase WindowSizerAshTest;
-
namespace {
// A browser window proxy which is able to associate an aura native window with
@@ -94,6 +93,13 @@ scoped_ptr<TestBrowserWindowAura> CreateTestBrowserWindow(
} // namespace
+class WindowSizerAshTest : public ash::test::AshTestBase {
+ private:
+ // The existence of this object enables tests via
+ // RenderViewHostTester.
+ content::RenderViewHostTestEnabler rvh_test_enabler_;
+};
+
// Test that the window is sized appropriately for the first run experience
// where the default window bounds calculation is invoked.
TEST_F(WindowSizerAshTest, DefaultSizeCase) {

Powered by Google App Engine
This is Rietveld 408576698