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

Unified Diff: ash/system/tray/system_tray_unittest.cc

Issue 251193004: Animate the OverviewButtonTray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: ash/system/tray/system_tray_unittest.cc
diff --git a/ash/system/tray/system_tray_unittest.cc b/ash/system/tray/system_tray_unittest.cc
index 1a2d3555e81a2b88eb536d156c22526f8079992b..e7eb64077788e93749e8ad1dcc1d145467fb5dd1 100644
--- a/ash/system/tray/system_tray_unittest.cc
+++ b/ash/system/tray/system_tray_unittest.cc
@@ -13,6 +13,7 @@
#include "ash/shell.h"
#include "ash/system/status_area_widget.h"
#include "ash/system/tray/system_tray_item.h"
+#include "ash/system/tray/tray_background_view.h"
#include "ash/system/tray/tray_constants.h"
#include "ash/test/ash_test_base.h"
#include "ash/wm/window_util.h"
@@ -33,7 +34,6 @@
#endif
namespace ash {
-namespace test {
namespace {
@@ -156,7 +156,19 @@ class ModalWidgetDelegate : public views::WidgetDelegateView {
} // namespace
-typedef AshTestBase SystemTrayTest;
+class SystemTrayTest : public test::AshTestBase {
+ public:
+ SystemTrayTest() {}
+ virtual ~SystemTrayTest() {}
+
+ virtual void SetUp() OVERRIDE {
+ TrayBackgroundView::DisableAnimationsForTest();
+ test::AshTestBase::SetUp();
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SystemTrayTest);
+};
TEST_F(SystemTrayTest, SystemTrayDefaultView) {
SystemTray* tray = GetSystemTray();
@@ -483,5 +495,4 @@ TEST_F(SystemTrayTest, MAYBE_WithSystemModal) {
EXPECT_TRUE(settings->visible());
}
-} // namespace test
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698