OLD | NEW |
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/trace_event/trace_event_system_stats_monitor.h" | 5 #include "base/trace_event/trace_event_system_stats_monitor.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
12 #include "base/trace_event/trace_event_impl.h" | 13 #include "base/trace_event/trace_event_impl.h" |
13 #include "build/build_config.h" | 14 #include "build/build_config.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 namespace trace_event { | 18 namespace trace_event { |
18 | 19 |
19 #if !defined(OS_IOS) | 20 #if !defined(OS_IOS) |
20 // Tests for the system stats monitor. | 21 // Tests for the system stats monitor. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 EXPECT_FALSE(system_stats_monitor->IsTimerRunningForTest()); | 59 EXPECT_FALSE(system_stats_monitor->IsTimerRunningForTest()); |
59 | 60 |
60 // Deleting the observer removes it from the TraceLog observer list. | 61 // Deleting the observer removes it from the TraceLog observer list. |
61 system_stats_monitor.reset(); | 62 system_stats_monitor.reset(); |
62 EXPECT_EQ(0u, TraceLog::GetInstance()->GetObserverCountForTest()); | 63 EXPECT_EQ(0u, TraceLog::GetInstance()->GetObserverCountForTest()); |
63 } | 64 } |
64 #endif // !defined(OS_IOS) | 65 #endif // !defined(OS_IOS) |
65 | 66 |
66 } // namespace trace_event | 67 } // namespace trace_event |
67 } // namespace base | 68 } // namespace base |
OLD | NEW |