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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc

Issue 271913002: Animate window control changes in TouchView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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/browser/ui/views/frame/browser_non_client_frame_view_ash.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc
index 2dfa8fc0e4aad16a4faff4da0c5f15b1cd9b12d6..44be0d7c499e0f843e8d8677430921c83f659aea 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc
@@ -24,7 +24,34 @@
using views::Widget;
-typedef InProcessBrowserTest BrowserNonClientFrameViewAshTest;
+namespace {
+
+class BrowserNonClientFrameViewAshTest : public InProcessBrowserTest {
+ public:
+ BrowserNonClientFrameViewAshTest() {}
+ virtual ~BrowserNonClientFrameViewAshTest() {}
+
+ // InProcessBrowserTest:
+ virtual void SetUp() OVERRIDE;
+ virtual void TearDown() OVERRIDE;
+
+ private:
+ scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_;
+ DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAshTest);
+};
+
+void BrowserNonClientFrameViewAshTest::SetUp() {
+ zero_duration_mode_.reset(new ui::ScopedAnimationDurationScaleMode(
+ ui::ScopedAnimationDurationScaleMode::ZERO_DURATION));
+ InProcessBrowserTest::SetUp();
+}
+
+void BrowserNonClientFrameViewAshTest::TearDown() {
+ zero_duration_mode_.reset();
+ InProcessBrowserTest::TearDown();
+}
+
+} // namespace
IN_PROC_BROWSER_TEST_F(BrowserNonClientFrameViewAshTest, NonClientHitTest) {
BrowserView* browser_view = BrowserView::GetBrowserViewForBrowser(browser());
« no previous file with comments | « chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698