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

Unified Diff: content/browser/tracing/tracing_controller_browsertest.cc

Issue 2052773002: Clean up public TracingController interface [1/3]: hide TraceDataEndpoint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased, added CONTENT_EXPORT where missing Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/tracing/tracing_controller_browsertest.cc
diff --git a/content/browser/tracing/tracing_controller_browsertest.cc b/content/browser/tracing/tracing_controller_browsertest.cc
index 29fbba14f3f657cb9c048fe595c6d073236b1891..7361cfa8683f395ddc0b65c6d5821718996e68ee 100644
--- a/content/browser/tracing/tracing_controller_browsertest.cc
+++ b/content/browser/tracing/tracing_controller_browsertest.cc
@@ -12,6 +12,7 @@
#include "base/run_loop.h"
#include "base/strings/pattern.h"
#include "build/build_config.h"
+#include "content/browser/tracing/tracing_controller_impl.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
@@ -55,8 +56,7 @@ bool IsTraceEventArgsWhitelisted(
} // namespace
-class TracingControllerTestEndpoint
- : public TracingController::TraceDataEndpoint {
+class TracingControllerTestEndpoint : public TraceDataEndpoint {
public:
TracingControllerTestEndpoint(
base::Callback<void(std::unique_ptr<const base::DictionaryValue>,
@@ -271,7 +271,7 @@ class TracingControllerTest : public ContentBrowserTest {
&TracingControllerTest::StopTracingStringDoneCallbackTest,
base::Unretained(this), run_loop.QuitClosure());
bool result = controller->StopTracing(
- TracingController::CreateCompressedStringSink(
+ TracingControllerImpl::CreateCompressedStringSink(
new TracingControllerTestEndpoint(callback)));
ASSERT_TRUE(result);
run_loop.Run();
@@ -302,9 +302,9 @@ class TracingControllerTest : public ContentBrowserTest {
&TracingControllerTest::StopTracingFileDoneCallbackTest,
base::Unretained(this), run_loop.QuitClosure(), result_file_path);
bool result = controller->StopTracing(
- TracingController::CreateCompressedStringSink(
- TracingController::CreateFileEndpoint(result_file_path,
- callback)));
+ TracingControllerImpl::CreateCompressedStringSink(
+ TracingControllerImpl::CreateFileEndpoint(result_file_path,
+ callback)));
ASSERT_TRUE(result);
run_loop.Run();
EXPECT_EQ(disable_recording_done_callback_count(), 1);
« no previous file with comments | « content/browser/tracing/background_tracing_manager_impl.cc ('k') | content/browser/tracing/tracing_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698