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

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

Issue 19579005: Move ReadFileToString to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
« no previous file with comments | « content/browser/gpu/gpu_pixel_browsertest.cc ('k') | content/browser/tracing/tracing_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tracing/trace_subscriber_stdio_unittest.cc
diff --git a/content/browser/tracing/trace_subscriber_stdio_unittest.cc b/content/browser/tracing/trace_subscriber_stdio_unittest.cc
index 0a3be3af89f73ee2fc67688ef225c4450312455a..10e51a968dfb6934ea32fd63cce5593ea08d94ee 100644
--- a/content/browser/tracing/trace_subscriber_stdio_unittest.cc
+++ b/content/browser/tracing/trace_subscriber_stdio_unittest.cc
@@ -35,7 +35,7 @@ TEST_F(TraceSubscriberStdioTest, CanWriteArray) {
}
BrowserThread::GetBlockingPool()->FlushForTesting();
std::string result;
- EXPECT_TRUE(file_util::ReadFileToString(trace_file, &result));
+ EXPECT_TRUE(base::ReadFileToString(trace_file, &result));
EXPECT_EQ("[foo,bar]", result);
}
@@ -61,7 +61,7 @@ TEST_F(TraceSubscriberStdioTest, CanWritePropertyList) {
}
BrowserThread::GetBlockingPool()->FlushForTesting();
std::string result;
- EXPECT_TRUE(file_util::ReadFileToString(trace_file, &result));
+ EXPECT_TRUE(base::ReadFileToString(trace_file, &result));
EXPECT_EQ("{\"traceEvents\":[foo,bar]}", result);
}
@@ -90,7 +90,7 @@ TEST_F(TraceSubscriberStdioTest, CanWriteSystemDataFirst) {
}
BrowserThread::GetBlockingPool()->FlushForTesting();
std::string result;
- EXPECT_TRUE(file_util::ReadFileToString(trace_file, &result));
+ EXPECT_TRUE(base::ReadFileToString(trace_file, &result));
EXPECT_EQ(
"{\"traceEvents\":[foo,bar],\""
"systemTraceEvents\":\"event1\\nev\\\"ent\\\"2\\n\"}",
@@ -122,7 +122,7 @@ TEST_F(TraceSubscriberStdioTest, CanWriteSystemDataLast) {
}
BrowserThread::GetBlockingPool()->FlushForTesting();
std::string result;
- EXPECT_TRUE(file_util::ReadFileToString(trace_file, &result));
+ EXPECT_TRUE(base::ReadFileToString(trace_file, &result));
EXPECT_EQ(
"{\"traceEvents\":[foo,bar],\""
"systemTraceEvents\":\"event1\\nev\\\"ent\\\"2\\n\"}",
« no previous file with comments | « content/browser/gpu/gpu_pixel_browsertest.cc ('k') | content/browser/tracing/tracing_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698