Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |