OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/common/shelf/shelf_constants.h" | 5 #include "ash/common/shelf/shelf_constants.h" |
6 #include "ash/common/shelf/wm_shelf.h" | 6 #include "ash/common/shelf/wm_shelf.h" |
7 #include "ash/common/system/toast/toast_manager.h" | 7 #include "ash/common/system/toast/toast_manager.h" |
8 #include "ash/common/wm/wm_screen_util.h" | 8 #include "ash/common/wm/wm_screen_util.h" |
9 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
10 #include "ash/display/display_manager.h" | 10 #include "ash/display/display_manager.h" |
11 #include "ash/screen_util.h" | |
12 #include "ash/shell.h" | 11 #include "ash/shell.h" |
13 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
14 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
15 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
16 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
18 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 17 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
19 #include "ui/views/widget/widget.h" | 18 #include "ui/views/widget/widget.h" |
20 | 19 |
21 namespace ash { | 20 namespace ash { |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 EXPECT_EQ(base::ASCIIToUTF16("TEXT3"), GetCurrentText()); | 283 EXPECT_EQ(base::ASCIIToUTF16("TEXT3"), GetCurrentText()); |
285 // Cancel the shown toast. | 284 // Cancel the shown toast. |
286 CancelToast(id3); | 285 CancelToast(id3); |
287 // Confirm that the shown toast disappears. | 286 // Confirm that the shown toast disappears. |
288 EXPECT_FALSE(GetCurrentOverlay()); | 287 EXPECT_FALSE(GetCurrentOverlay()); |
289 // Confirm that only 1 toast is shown. | 288 // Confirm that only 1 toast is shown. |
290 EXPECT_EQ(2, GetToastSerial()); | 289 EXPECT_EQ(2, GetToastSerial()); |
291 } | 290 } |
292 | 291 |
293 } // namespace ash | 292 } // namespace ash |
OLD | NEW |