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

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

Issue 869043008: Reland of Move tracing namespace from base::debug to base::trace_event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Fix suppressions Created 5 years, 10 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 | « base/trace_event/trace_event_win.cc ('k') | build/sanitizers/tsan_suppressions.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <strstream> 7 #include <strstream>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/trace_event/trace_event.h" 12 #include "base/trace_event/trace_event.h"
13 #include "base/trace_event/trace_event_win.h" 13 #include "base/trace_event/trace_event_win.h"
14 #include "base/win/event_trace_consumer.h" 14 #include "base/win/event_trace_consumer.h"
15 #include "base/win/event_trace_controller.h" 15 #include "base/win/event_trace_controller.h"
16 #include "base/win/event_trace_provider.h" 16 #include "base/win/event_trace_provider.h"
17 #include "base/win/windows_version.h" 17 #include "base/win/windows_version.h"
18 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include <initguid.h> // NOLINT - must be last include. 20 #include <initguid.h> // NOLINT - must be last include.
21 21
22 namespace base { 22 namespace base {
23 namespace debug { 23 namespace trace_event {
24 24
25 namespace { 25 namespace {
26 26
27 using testing::_; 27 using testing::_;
28 using testing::AnyNumber; 28 using testing::AnyNumber;
29 using testing::InSequence; 29 using testing::InSequence;
30 using testing::Ge; 30 using testing::Ge;
31 using testing::Le; 31 using testing::Le;
32 using testing::NotNull; 32 using testing::NotNull;
33 33
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 TRACE_EVENT_INSTANT_ETW(kName, kId, kExtra); 308 TRACE_EVENT_INSTANT_ETW(kName, kId, kExtra);
309 ExpectEvent(kTraceEventClass32, 309 ExpectEvent(kTraceEventClass32,
310 kTraceEventTypeInstant, 310 kTraceEventTypeInstant,
311 kName, strlen(kName), 311 kName, strlen(kName),
312 kId, 312 kId,
313 kExtra, strlen(kExtra)); 313 kExtra, strlen(kExtra));
314 314
315 PlayLog(); 315 PlayLog();
316 } 316 }
317 317
318 } // namespace debug 318 } // namespace trace_event
319 } // namespace base 319 } // namespace base
OLDNEW
« no previous file with comments | « base/trace_event/trace_event_win.cc ('k') | build/sanitizers/tsan_suppressions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698