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

Side by Side Diff: content/child/power_monitor_broadcast_source_unittest.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
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 "base/macros.h"
5 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
6 #include "base/test/power_monitor_test_base.h" 7 #include "base/test/power_monitor_test_base.h"
7 #include "content/child/power_monitor_broadcast_source.h" 8 #include "content/child/power_monitor_broadcast_source.h"
8 #include "content/common/power_monitor_messages.h" 9 #include "content/common/power_monitor_messages.h"
9 #include "ipc/message_filter.h" 10 #include "ipc/message_filter.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 class PowerMonitorBroadcastSourceTest : public testing::Test { 15 class PowerMonitorBroadcastSourceTest : public testing::Test {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 EXPECT_EQ(observer.power_state_changes(), 2); 87 EXPECT_EQ(observer.power_state_changes(), 2);
87 EXPECT_EQ(observer.last_power_state(), false); 88 EXPECT_EQ(observer.last_power_state(), false);
88 89
89 // Repeated indications the device is off battery power should be suppressed. 90 // Repeated indications the device is off battery power should be suppressed.
90 message_filter->OnMessageReceived(off_battery_msg); 91 message_filter->OnMessageReceived(off_battery_msg);
91 message_loop_.RunUntilIdle(); 92 message_loop_.RunUntilIdle();
92 EXPECT_EQ(observer.power_state_changes(), 2); 93 EXPECT_EQ(observer.power_state_changes(), 2);
93 } 94 }
94 95
95 } // namespace base 96 } // namespace base
OLDNEW
« no previous file with comments | « content/child/power_monitor_broadcast_source.cc ('k') | content/child/push_messaging/push_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698