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

Unified Diff: content/browser/trace_subscriber_stdio_unittest.cc

Issue 11340029: Move remaining files in content\browser to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/trace_subscriber_stdio_unittest.cc
===================================================================
--- content/browser/trace_subscriber_stdio_unittest.cc (revision 164795)
+++ content/browser/trace_subscriber_stdio_unittest.cc (working copy)
@@ -9,6 +9,8 @@
#include "content/public/browser/browser_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
+namespace content {
+
class TraceSubscriberStdioTest : public ::testing::Test {};
TEST_F(TraceSubscriberStdioTest, CanWriteDataToFile) {
@@ -16,7 +18,7 @@
ASSERT_TRUE(trace_dir.CreateUniqueTempDir());
FilePath trace_file(trace_dir.path().AppendASCII("trace.txt"));
{
- content::TraceSubscriberStdio subscriber(trace_file);
+ TraceSubscriberStdio subscriber(trace_file);
std::string foo("foo");
subscriber.OnTraceDataCollected(
@@ -28,8 +30,10 @@
subscriber.OnEndTracingComplete();
}
- content::BrowserThread::GetBlockingPool()->FlushForTesting();
+ BrowserThread::GetBlockingPool()->FlushForTesting();
std::string result;
EXPECT_TRUE(file_util::ReadFileToString(trace_file, &result));
EXPECT_EQ("[foo,bar]", result);
}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698