| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/web_notification/web_notification_tray.h" | 5 #include "ash/system/web_notification/web_notification_tray.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "ash/display/display_manager.h" | 9 #include "ash/display/display_manager.h" |
| 10 #include "ash/root_window_controller.h" | 10 #include "ash/root_window_controller.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace | 90 } // namespace |
| 91 | 91 |
| 92 class WebNotificationTrayTest : public test::AshTestBase { | 92 class WebNotificationTrayTest : public test::AshTestBase { |
| 93 public: | 93 public: |
| 94 WebNotificationTrayTest() {} | 94 WebNotificationTrayTest() {} |
| 95 ~WebNotificationTrayTest() override {} | 95 ~WebNotificationTrayTest() override {} |
| 96 | 96 |
| 97 void SetUp() override { | 97 void SetUp() override { |
| 98 CommandLine::ForCurrentProcess()->AppendSwitch( | 98 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| 99 switches::kEnableTouchFeedback); | 99 switches::kEnableTouchFeedback); |
| 100 test::AshTestBase::SetUp(); | 100 test::AshTestBase::SetUp(); |
| 101 } | 101 } |
| 102 | 102 |
| 103 void TearDown() override { | 103 void TearDown() override { |
| 104 GetMessageCenter()->RemoveAllNotifications(false); | 104 GetMessageCenter()->RemoveAllNotifications(false); |
| 105 test::AshTestBase::TearDown(); | 105 test::AshTestBase::TearDown(); |
| 106 } | 106 } |
| 107 | 107 |
| 108 protected: | 108 protected: |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 move.time_stamp()+base::TimeDelta::FromMilliseconds(50)); | 545 move.time_stamp()+base::TimeDelta::FromMilliseconds(50)); |
| 546 generator.Dispatch(&release); | 546 generator.Dispatch(&release); |
| 547 RunAllPendingInMessageLoop(); | 547 RunAllPendingInMessageLoop(); |
| 548 EXPECT_FALSE(tray->draw_background_as_active()); | 548 EXPECT_FALSE(tray->draw_background_as_active()); |
| 549 EXPECT_FALSE(tray->IsMessageCenterBubbleVisible()); | 549 EXPECT_FALSE(tray->IsMessageCenterBubbleVisible()); |
| 550 } | 550 } |
| 551 | 551 |
| 552 #endif // OS_CHROMEOS | 552 #endif // OS_CHROMEOS |
| 553 | 553 |
| 554 } // namespace ash | 554 } // namespace ash |
| OLD | NEW |