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

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

Issue 2103603002: mash: Remove StatusAreaWidget references from system tray classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments, rename SetSystemTrayHeight to SetTrayBubbleHeight Created 4 years, 6 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 | « ash/system/tray/system_tray.cc ('k') | ash/system/web_notification/ash_popup_alignment_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bef16e1c439cab6e2449d19c0a52a5b3d46d6719..696b495d99be91a14bfbcf055114adc24d83e8b6 100644
--- a/ash/system/tray/system_tray_unittest.cc
+++ b/ash/system/tray/system_tray_unittest.cc
@@ -12,9 +12,9 @@
#include "ash/common/system/tray/system_tray_item.h"
#include "ash/common/system/tray/tray_constants.h"
#include "ash/common/system/tray/tray_popup_item_container.h"
+#include "ash/common/system/web_notification/web_notification_tray.h"
#include "ash/shell.h"
#include "ash/system/status_area_widget.h"
-#include "ash/system/web_notification/web_notification_tray.h"
#include "ash/test/ash_test_base.h"
#include "ash/test/status_area_widget_test_helper.h"
#include "ash/wm/window_util.h"
@@ -536,19 +536,19 @@ TEST_F(SystemTrayTest, SystemTrayHeightWithBubble) {
StatusAreaWidgetTestHelper::GetStatusAreaWidget()
->web_notification_tray();
- // Ensure the initial system tray height is zero.
- EXPECT_EQ(0, notification_tray->system_tray_height_for_test());
+ // Ensure the initial tray bubble height is zero.
+ EXPECT_EQ(0, notification_tray->tray_bubble_height_for_test());
- // Show the default view, ensure the system tray height is changed.
+ // Show the default view, ensure the tray bubble height is changed.
tray->ShowDefaultView(BUBBLE_CREATE_NEW);
RunAllPendingInMessageLoop();
- EXPECT_LT(0, notification_tray->system_tray_height_for_test());
+ EXPECT_LT(0, notification_tray->tray_bubble_height_for_test());
- // Hide the default view, ensure the system tray height is back to zero.
+ // Hide the default view, ensure the tray bubble height is back to zero.
ASSERT_TRUE(tray->CloseSystemBubble());
RunAllPendingInMessageLoop();
- EXPECT_EQ(0, notification_tray->system_tray_height_for_test());
+ EXPECT_EQ(0, notification_tray->tray_bubble_height_for_test());
}
#endif // OS_CHROMEOS
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/system/web_notification/ash_popup_alignment_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698