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

Side by Side Diff: base/trace_event/trace_event_unittest.cc

Issue 2047793002: tracing: ensure __metadata events are always added to the trace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | base/trace_event/trace_log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | base/trace_event/trace_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698