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

Unified Diff: ui/views/test/views_test_helper_mac.h

Issue 378663002: MacViews: Disable animations when running views_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Create ViewsTestHelperMac Created 6 years, 5 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 | « ui/views/test/views_test_helper.cc ('k') | ui/views/test/views_test_helper_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/views_test_helper_mac.h
diff --git a/ui/views/test/views_test_helper_mac.h b/ui/views/test/views_test_helper_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..61491aefc89318e7c816a8e1ff9805529b6ad006
--- /dev/null
+++ b/ui/views/test/views_test_helper_mac.h
@@ -0,0 +1,31 @@
+// Copyright 2014 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.
+
+#ifndef UI_VIEWS_TEST_VIEWS_TEST_HELPER_MAC_H_
+#define UI_VIEWS_TEST_VIEWS_TEST_HELPER_MAC_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "ui/views/test/views_test_helper.h"
+
+namespace ui {
+class ScopedAnimationDurationScaleMode;
+}
+
+namespace views {
+
+class ViewsTestHelperMac : public ViewsTestHelper {
+ public:
+ ViewsTestHelperMac();
+ virtual ~ViewsTestHelperMac();
+
+ private:
+ // Disable animations during tests.
+ scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_;
+
+ DISALLOW_COPY_AND_ASSIGN(ViewsTestHelperMac);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_TEST_VIEWS_TEST_HELPER_MAC_H_
« no previous file with comments | « ui/views/test/views_test_helper.cc ('k') | ui/views/test/views_test_helper_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698