OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <shellapi.h> | 9 #include <shellapi.h> |
10 #include <shlobj.h> | 10 #include <shlobj.h> |
11 #endif | 11 #endif |
12 | 12 |
13 #include <fstream> | 13 #include <fstream> |
14 #include <iostream> | 14 #include <iostream> |
15 #include <set> | 15 #include <set> |
16 | 16 |
17 #include "base/base_paths.h" | 17 #include "base/base_paths.h" |
18 #include "base/file_path.h" | 18 #include "base/file_path.h" |
19 #include "base/file_util.h" | 19 #include "base/file_util.h" |
20 #include "base/logging.h" | 20 #include "base/logging.h" |
21 #include "base/path_service.h" | 21 #include "base/path_service.h" |
22 #include "base/platform_test.h" | |
23 #include "base/string_util.h" | 22 #include "base/string_util.h" |
24 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 24 #include "testing/platform_test.h" |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 // file_util winds up using autoreleased objects on the Mac, so this needs | 28 // file_util winds up using autoreleased objects on the Mac, so this needs |
29 // to be a PlatformTest | 29 // to be a PlatformTest |
30 class FileUtilTest : public PlatformTest { | 30 class FileUtilTest : public PlatformTest { |
31 protected: | 31 protected: |
32 virtual void SetUp() { | 32 virtual void SetUp() { |
33 PlatformTest::SetUp(); | 33 PlatformTest::SetUp(); |
34 // Name a subdirectory of the temp directory. | 34 // Name a subdirectory of the temp directory. |
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
977 for (size_t j = 0; j < comps.size(); ++j) { | 977 for (size_t j = 0; j < comps.size(); ++j) { |
978 result.append(comps[j]); | 978 result.append(comps[j]); |
979 if (j < comps.size() - 1) | 979 if (j < comps.size() - 1) |
980 result.append(FILE_PATH_LITERAL("|"), 1); | 980 result.append(FILE_PATH_LITERAL("|"), 1); |
981 } | 981 } |
982 EXPECT_EQ(kPathComponents[i].result, result); | 982 EXPECT_EQ(kPathComponents[i].result, result); |
983 } | 983 } |
984 } | 984 } |
985 | 985 |
986 } // namespace | 986 } // namespace |
OLD | NEW |