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

Side by Side Diff: base/message_loop/message_pump_mac_unittest.cc

Issue 2709813003: [Mac] Reduce timer CPU use in MessagePumpCFRunLoopBase. (Closed)
Patch Set: Created 3 years, 10 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/message_loop/message_pump_mac.h"
6
7 #include "base/macros.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9
10 namespace base {
11
12 class TestMessagePumpCFRunLoopBase {
13 public:
14 MessagePumpCFRunLoop message_pump;
15
16 bool CanInvalidateTimers() { return message_pump.can_invalidate_timers_; }
17 };
18
19 TEST(MessagePumpMacTest, TestCanInvalidateTimers) {
20 TestMessagePumpCFRunLoopBase message_pump_test;
21
22 // Catch if the use of private API ever starts failing.
Mark Mentovai 2017/02/21 17:41:22 whether
shrike 2017/02/22 00:57:52 Done.
23 EXPECT_TRUE(message_pump_test.CanInvalidateTimers());
24 }
25 } // namespace base
OLDNEW
« base/message_loop/message_pump_mac.mm ('K') | « base/message_loop/message_pump_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698