| 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/display/display_manager.h" | 8 #include "ash/display/display_manager.h" |
| 8 #include "ash/screen_util.h" | 9 #include "ash/screen_util.h" |
| 9 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| 10 #include "ash/system/toast/toast_manager.h" | |
| 11 #include "ash/test/ash_test_base.h" | 11 #include "ash/test/ash_test_base.h" |
| 12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 14 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
| 15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 | 18 |
| 19 class DummyEvent : public ui::Event { | 19 class DummyEvent : public ui::Event { |
| 20 public: | 20 public: |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 EXPECT_EQ("TEXT3", GetCurrentText()); | 291 EXPECT_EQ("TEXT3", GetCurrentText()); |
| 292 // Cancel the shown toast. | 292 // Cancel the shown toast. |
| 293 CancelToast(id3); | 293 CancelToast(id3); |
| 294 // Confirm that the shown toast disappears. | 294 // Confirm that the shown toast disappears. |
| 295 EXPECT_FALSE(GetCurrentOverlay()); | 295 EXPECT_FALSE(GetCurrentOverlay()); |
| 296 // Confirm that only 1 toast is shown. | 296 // Confirm that only 1 toast is shown. |
| 297 EXPECT_EQ(2, GetToastSerial()); | 297 EXPECT_EQ(2, GetToastSerial()); |
| 298 } | 298 } |
| 299 | 299 |
| 300 } // namespace ash | 300 } // namespace ash |
| OLD | NEW |