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

Unified Diff: ash/shelf/shelf_view_unittest.cc

Issue 2243563002: Show small notification icons in notification tray (reland) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/shelf/shelf_view_unittest.cc
diff --git a/ash/shelf/shelf_view_unittest.cc b/ash/shelf/shelf_view_unittest.cc
index ee9e276c63c63a8619831fc2b8dda544bcc0dc11..f45a7aa04e548889a3a0b335cae8049fe2fa37bb 100644
--- a/ash/shelf/shelf_view_unittest.cc
+++ b/ash/shelf/shelf_view_unittest.cc
@@ -20,6 +20,7 @@
#include "ash/common/shelf/shelf_tooltip_manager.h"
#include "ash/common/shelf/wm_shelf.h"
#include "ash/common/shell_window_ids.h"
+#include "ash/common/system/web_notification/web_notification_tray.h"
#include "ash/common/test/material_design_controller_test_api.h"
#include "ash/common/wm_shell.h"
#include "ash/shelf/shelf_widget.h"
@@ -313,6 +314,8 @@ class ShelfViewTest : public AshTestBase {
Shelf* shelf = Shelf::ForPrimaryDisplay();
shelf_view_ = ShelfTestAPI(shelf).shelf_view();
+ WebNotificationTray::DisableAnimationsForTest(true);
+
// The bounds should be big enough for 4 buttons + overflow chevron.
shelf_view_->SetBounds(0, 0, 500, GetShelfConstant(SHELF_SIZE));
@@ -326,6 +329,8 @@ class ShelfViewTest : public AshTestBase {
}
void TearDown() override {
+ WebNotificationTray::DisableAnimationsForTest(false); // Reenable animation
+
shelf_delegate_ = nullptr;
test_api_.reset();
AshTestBase::TearDown();
« no previous file with comments | « ash/common/system/web_notification/web_notification_tray.cc ('k') | ash/wm/panels/panel_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698