| 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/trace_event/trace_event.h" | 5 #include "base/trace_event/trace_event.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 3101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3112 config1.Merge(config2); | 3112 config1.Merge(config2); |
| 3113 EXPECT_EQ(2u, config1.GetSyntheticDelayValues().size()); | 3113 EXPECT_EQ(2u, config1.GetSyntheticDelayValues().size()); |
| 3114 } | 3114 } |
| 3115 | 3115 |
| 3116 TEST_F(TraceEventTestFixture, SyntheticDelayConfigurationToString) { | 3116 TEST_F(TraceEventTestFixture, SyntheticDelayConfigurationToString) { |
| 3117 const char filter[] = "DELAY(test.Delay;16;oneshot)"; | 3117 const char filter[] = "DELAY(test.Delay;16;oneshot)"; |
| 3118 TraceConfig config(filter, ""); | 3118 TraceConfig config(filter, ""); |
| 3119 EXPECT_EQ(filter, config.ToCategoryFilterString()); | 3119 EXPECT_EQ(filter, config.ToCategoryFilterString()); |
| 3120 } | 3120 } |
| 3121 | 3121 |
| 3122 TEST_F(TraceEventTestFixture, ClockSyncEventsAreAlwaysAddedToTrace) { |
| 3123 BeginSpecificTrace("-*"); |
| 3124 TRACE_EVENT_CLOCK_SYNC_RECEIVER(1); |
| 3125 EndTraceAndFlush(); |
| 3126 EXPECT_TRUE(FindNamePhase("clock_sync", "c")); |
| 3127 } |
| 3128 |
| 3122 } // namespace trace_event | 3129 } // namespace trace_event |
| 3123 } // namespace base | 3130 } // namespace base |
| OLD | NEW |