Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: ash/system/power/video_activity_notifier_unittest.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/power/video_activity_notifier.cc ('k') | ash/system/rotation/tray_rotation_lock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/system/power/video_activity_notifier.cc ('k') | ash/system/rotation/tray_rotation_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698