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

Side by Side Diff: base/test/trace_to_file.cc

Issue 1716163002: include-what-you-use: Fix some tracing-related includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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/test/trace_to_file.h" 5 #include "base/test/trace_to_file.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/memory/ref_counted_memory.h"
11 #include "base/run_loop.h" 12 #include "base/run_loop.h"
12 #include "base/trace_event/trace_buffer.h" 13 #include "base/trace_event/trace_buffer.h"
13 #include "base/trace_event/trace_log.h" 14 #include "base/trace_event/trace_log.h"
14 15
15 namespace base { 16 namespace base {
16 namespace test { 17 namespace test {
17 18
18 TraceToFile::TraceToFile() : started_(false) { 19 TraceToFile::TraceToFile() : started_(false) {
19 } 20 }
20 21
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 RunLoop run_loop; 97 RunLoop run_loop;
97 trace_event::TraceLog::GetInstance()->Flush( 98 trace_event::TraceLog::GetInstance()->Flush(
98 Bind(&OnTraceDataCollected, run_loop.QuitClosure(), Unretained(&buffer))); 99 Bind(&OnTraceDataCollected, run_loop.QuitClosure(), Unretained(&buffer)));
99 run_loop.Run(); 100 run_loop.Run();
100 101
101 AppendFileFooter(); 102 AppendFileFooter();
102 } 103 }
103 104
104 } // namespace test 105 } // namespace test
105 } // namespace base 106 } // namespace base
OLDNEW
« no previous file with comments | « base/test/trace_event_analyzer_unittest.cc ('k') | base/trace_event/memory_dump_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698