| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/timer/hi_res_timer_manager.h" | 5 #include "base/timer/hi_res_timer_manager.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/power_monitor/power_monitor.h" | 9 #include "base/power_monitor/power_monitor.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 | 14 |
| 15 #if defined(OS_WIN) | 15 #if defined(OS_WIN) |
| 16 // http://crbug.com/114048 | 16 // http://crbug.com/114048 |
| 17 TEST(HiResTimerManagerTest, DISABLED_ToggleOnOff) { | 17 TEST(HiResTimerManagerTest, DISABLED_ToggleOnOff) { |
| 18 base::MessageLoop loop; | 18 base::MessageLoop loop; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 48 EXPECT_TRUE(manager.hi_res_clock_available()); | 48 EXPECT_TRUE(manager.hi_res_clock_available()); |
| 49 EXPECT_TRUE(base::Time::IsHighResolutionTimerInUse()); | 49 EXPECT_TRUE(base::Time::IsHighResolutionTimerInUse()); |
| 50 | 50 |
| 51 // De-activate the high resolution timer. | 51 // De-activate the high resolution timer. |
| 52 base::Time::ActivateHighResolutionTimer(false); | 52 base::Time::ActivateHighResolutionTimer(false); |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 #endif // defined(OS_WIN) | 55 #endif // defined(OS_WIN) |
| 56 | 56 |
| 57 } // namespace base | 57 } // namespace base |
| OLD | NEW |