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

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: Rebase. Created 7 years, 2 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 7a377017eb7892a00edf306a79626d7947deda04..36ff9b967703955e7574c16f9f47eeabfd38a99f 100644
--- a/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc
+++ b/chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc
@@ -15,6 +15,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"
@@ -22,8 +23,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
@@ -89,6 +88,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_;
+};
sky 2013/10/11 22:34:27 DISALLOW...
samarth 2013/10/14 16:58:57 Done.
samarth 2013/10/14 17:22:33 Actually I can't do that since the test cases will
+
// 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