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

Side by Side Diff: content/browser/tracing/trace_subscriber_stdio_unittest.cc

Issue 14606009: Cleanup: Remove unneeded base/file_util.h includes in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 "content/browser/tracing/trace_subscriber_stdio.h" 5 #include "content/browser/tracing/trace_subscriber_stdio.h"
6 6
7 #include "base/file_util.h"
7 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
8 #include "base/threading/sequenced_worker_pool.h" 9 #include "base/threading/sequenced_worker_pool.h"
9 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 class TraceSubscriberStdioTest : public ::testing::Test {}; 15 class TraceSubscriberStdioTest : public ::testing::Test {};
15 16
16 TEST_F(TraceSubscriberStdioTest, CanWriteDataToFile) { 17 TEST_F(TraceSubscriberStdioTest, CanWriteDataToFile) {
(...skipping 13 matching lines...) Expand all
30 31
31 subscriber.OnEndTracingComplete(); 32 subscriber.OnEndTracingComplete();
32 } 33 }
33 BrowserThread::GetBlockingPool()->FlushForTesting(); 34 BrowserThread::GetBlockingPool()->FlushForTesting();
34 std::string result; 35 std::string result;
35 EXPECT_TRUE(file_util::ReadFileToString(trace_file, &result)); 36 EXPECT_TRUE(file_util::ReadFileToString(trace_file, &result));
36 EXPECT_EQ("[foo,bar]", result); 37 EXPECT_EQ("[foo,bar]", result);
37 } 38 }
38 39
39 } // namespace content 40 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/tracing/trace_subscriber_stdio.cc ('k') | content/browser/web_contents/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698