| 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/system/chromeos/power/video_activity_notifier.h" | 5 #include "ash/system/power/video_activity_notifier.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
| 10 #include "ash/wm/video_detector.h" | 10 #include "ash/wm/video_detector.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chromeos/dbus/dbus_thread_manager.h" | 12 #include "chromeos/dbus/dbus_thread_manager.h" |
| 13 #include "chromeos/dbus/fake_power_manager_client.h" | 13 #include "chromeos/dbus/fake_power_manager_client.h" |
| 14 | 14 |
| 15 namespace ash { | 15 namespace ash { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 EXPECT_TRUE(power_client_->PopVideoActivityReport()); | 104 EXPECT_TRUE(power_client_->PopVideoActivityReport()); |
| 105 EXPECT_FALSE(power_client_->have_video_activity_report()); | 105 EXPECT_FALSE(power_client_->have_video_activity_report()); |
| 106 | 106 |
| 107 // The timer should stop when video video. | 107 // The timer should stop when video video. |
| 108 notifier_->OnVideoStateChanged(VideoDetector::State::NOT_PLAYING); | 108 notifier_->OnVideoStateChanged(VideoDetector::State::NOT_PLAYING); |
| 109 EXPECT_FALSE(notifier_->TriggerTimeoutForTest()); | 109 EXPECT_FALSE(notifier_->TriggerTimeoutForTest()); |
| 110 EXPECT_FALSE(power_client_->have_video_activity_report()); | 110 EXPECT_FALSE(power_client_->have_video_activity_report()); |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace ash | 113 } // namespace ash |
| OLD | NEW |