OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/system/chromeos/screen_layout_observer.h" | 5 #include "ash/system/screen_layout_observer.h" |
6 | 6 |
7 #include "ash/common/system/chromeos/devicetype_utils.h" | |
8 #include "ash/common/system/tray/system_tray.h" | |
9 #include "ash/common/test/test_system_tray_delegate.h" | 7 #include "ash/common/test/test_system_tray_delegate.h" |
10 #include "ash/shell.h" | 8 #include "ash/shell.h" |
11 #include "ash/strings/grit/ash_strings.h" | 9 #include "ash/strings/grit/ash_strings.h" |
| 10 #include "ash/system/devicetype_utils.h" |
| 11 #include "ash/system/tray/system_tray.h" |
12 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "ui/accessibility/ax_node_data.h" | 16 #include "ui/accessibility/ax_node_data.h" |
17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
18 #include "ui/display/display.h" | 18 #include "ui/display/display.h" |
19 #include "ui/display/display_layout_builder.h" | 19 #include "ui/display/display_layout_builder.h" |
20 #include "ui/display/manager/display_manager.h" | 20 #include "ui/display/manager/display_manager.h" |
21 #include "ui/message_center/message_center.h" | 21 #include "ui/message_center/message_center.h" |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 display_manager()->SetLayoutForCurrentDisplays(builder.Build()); | 434 display_manager()->SetLayoutForCurrentDisplays(builder.Build()); |
435 EXPECT_TRUE(GetDisplayNotificationText().empty()); | 435 EXPECT_TRUE(GetDisplayNotificationText().empty()); |
436 | 436 |
437 // Close the lid. We go to docked mode, but we show no notifications. | 437 // Close the lid. We go to docked mode, but we show no notifications. |
438 UpdateDisplay("400x400"); | 438 UpdateDisplay("400x400"); |
439 EXPECT_TRUE(GetDisplayNotificationText().empty()); | 439 EXPECT_TRUE(GetDisplayNotificationText().empty()); |
440 EXPECT_TRUE(GetDisplayNotificationAdditionalText().empty()); | 440 EXPECT_TRUE(GetDisplayNotificationAdditionalText().empty()); |
441 } | 441 } |
442 | 442 |
443 } // namespace ash | 443 } // namespace ash |
OLD | NEW |