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

Side by Side Diff: base/file_util_unittest.cc

Issue 3014015: Remove <iostream> where possible. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: fix chrome frame compile Created 10 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 unified diff | Download patch
« no previous file with comments | « base/crypto/rsa_private_key_win.cc ('k') | base/linked_ptr_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <winioctl.h> 9 #include <winioctl.h>
10 #include <shellapi.h> 10 #include <shellapi.h>
11 #include <shlobj.h> 11 #include <shlobj.h>
12 #include <tchar.h> 12 #include <tchar.h>
13 #endif 13 #endif
14 14
15 #include <fstream> 15 #include <fstream>
16 #include <iostream>
17 #include <set> 16 #include <set>
18 17
19 #include "base/base_paths.h" 18 #include "base/base_paths.h"
20 #include "base/file_path.h" 19 #include "base/file_path.h"
21 #include "base/file_util.h" 20 #include "base/file_util.h"
22 #include "base/logging.h" 21 #include "base/logging.h"
23 #include "base/path_service.h" 22 #include "base/path_service.h"
24 #include "base/platform_thread.h" 23 #include "base/platform_thread.h"
25 #include "base/scoped_handle.h" 24 #include "base/scoped_handle.h"
26 #include "base/time.h" 25 #include "base/time.h"
(...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1858 EXPECT_TRUE(file_util::IsDirectoryEmpty(empty_dir)); 1857 EXPECT_TRUE(file_util::IsDirectoryEmpty(empty_dir));
1859 1858
1860 FilePath foo(empty_dir.Append(FILE_PATH_LITERAL("foo.txt"))); 1859 FilePath foo(empty_dir.Append(FILE_PATH_LITERAL("foo.txt")));
1861 std::string bar("baz"); 1860 std::string bar("baz");
1862 ASSERT_TRUE(file_util::WriteFile(foo, bar.c_str(), bar.length())); 1861 ASSERT_TRUE(file_util::WriteFile(foo, bar.c_str(), bar.length()));
1863 1862
1864 EXPECT_FALSE(file_util::IsDirectoryEmpty(empty_dir)); 1863 EXPECT_FALSE(file_util::IsDirectoryEmpty(empty_dir));
1865 } 1864 }
1866 1865
1867 } // namespace 1866 } // namespace
OLDNEW
« no previous file with comments | « base/crypto/rsa_private_key_win.cc ('k') | base/linked_ptr_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698