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 "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 Loading... |
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 |
OLD | NEW |