OLD | NEW |
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 Loading... |
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 |
OLD | NEW |