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

Side by Side Diff: chrome/test/base/tracing.cc

Issue 19569006: Use a direct include of the message_loop header in chrome/test/, chrome/tools/, chrome/utility/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 "chrome/test/base/tracing.h" 5 #include "chrome/test/base/tracing.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
11 #include "content/public/browser/trace_controller.h" 11 #include "content/public/browser/trace_controller.h"
12 #include "content/public/browser/trace_subscriber.h" 12 #include "content/public/browser/trace_subscriber.h"
13 #include "content/public/test/test_utils.h" 13 #include "content/public/test/test_utils.h"
14 14
15 namespace { 15 namespace {
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 18
19 class InProcessTraceController : public content::TraceSubscriber { 19 class InProcessTraceController : public content::TraceSubscriber {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 bool WaitForWatchEvent(base::TimeDelta timeout) { 151 bool WaitForWatchEvent(base::TimeDelta timeout) {
152 return InProcessTraceController::GetInstance()->WaitForWatchEvent(timeout); 152 return InProcessTraceController::GetInstance()->WaitForWatchEvent(timeout);
153 } 153 }
154 154
155 bool EndTracing(std::string* json_trace_output) { 155 bool EndTracing(std::string* json_trace_output) {
156 return InProcessTraceController::GetInstance()->EndTracing(json_trace_output); 156 return InProcessTraceController::GetInstance()->EndTracing(json_trace_output);
157 } 157 }
158 158
159 } // namespace tracing 159 } // namespace tracing
160 160
OLDNEW
« no previous file with comments | « chrome/test/base/test_tab_strip_model_observer.cc ('k') | chrome/test/base/tracing_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698