| 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_thread.h" | 22 #include "base/platform_thread.h" |
| 23 #include "base/string_util.h" | |
| 24 #include "base/time.h" | 23 #include "base/time.h" |
| 24 #include "base/utf_string_conversions.h" |
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 26 #include "testing/platform_test.h" | 26 #include "testing/platform_test.h" |
| 27 | 27 |
| 28 // This macro helps avoid wrapped lines in the test structs. | 28 // This macro helps avoid wrapped lines in the test structs. |
| 29 #define FPL(x) FILE_PATH_LITERAL(x) | 29 #define FPL(x) FILE_PATH_LITERAL(x) |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 const file_util::FileEnumerator::FILE_TYPE FILES_AND_DIRECTORIES = | 33 const file_util::FileEnumerator::FILE_TYPE FILES_AND_DIRECTORIES = |
| 34 static_cast<file_util::FileEnumerator::FILE_TYPE>( | 34 static_cast<file_util::FileEnumerator::FILE_TYPE>( |
| (...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1158 #elif defined(OS_LINUX) | 1158 #elif defined(OS_LINUX) |
| 1159 EXPECT_FALSE(file_util::ContainsPath(foo, | 1159 EXPECT_FALSE(file_util::ContainsPath(foo, |
| 1160 foo_caps.Append(FILE_PATH_LITERAL("bar.txt")))); | 1160 foo_caps.Append(FILE_PATH_LITERAL("bar.txt")))); |
| 1161 #else | 1161 #else |
| 1162 // We can't really do this test on osx since the case-sensitivity of the | 1162 // We can't really do this test on osx since the case-sensitivity of the |
| 1163 // filesystem is configurable. | 1163 // filesystem is configurable. |
| 1164 #endif | 1164 #endif |
| 1165 } | 1165 } |
| 1166 | 1166 |
| 1167 } // namespace | 1167 } // namespace |
| OLD | NEW |