OLD | NEW |
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 "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 #include <tchar.h> | 11 #include <tchar.h> |
12 #include <winioctl.h> | 12 #include <winioctl.h> |
13 #endif | 13 #endif |
14 | 14 |
15 #include <algorithm> | 15 #include <algorithm> |
16 #include <fstream> | 16 #include <fstream> |
17 #include <set> | 17 #include <set> |
18 | 18 |
19 #include "base/base_paths.h" | 19 #include "base/base_paths.h" |
20 #include "base/file_util.h" | 20 #include "base/file_util.h" |
21 #include "base/files/file_path.h" | 21 #include "base/files/file_path.h" |
22 #include "base/files/scoped_temp_dir.h" | 22 #include "base/files/scoped_temp_dir.h" |
23 #include "base/path_service.h" | 23 #include "base/path_service.h" |
| 24 #include "base/strings/utf_string_conversions.h" |
24 #include "base/test/test_file_util.h" | 25 #include "base/test/test_file_util.h" |
25 #include "base/threading/platform_thread.h" | 26 #include "base/threading/platform_thread.h" |
26 #include "base/utf_string_conversions.h" | |
27 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
28 #include "testing/platform_test.h" | 28 #include "testing/platform_test.h" |
29 | 29 |
30 #if defined(OS_WIN) | 30 #if defined(OS_WIN) |
31 #include "base/win/scoped_handle.h" | 31 #include "base/win/scoped_handle.h" |
32 #endif | 32 #endif |
33 | 33 |
34 // This macro helps avoid wrapped lines in the test structs. | 34 // This macro helps avoid wrapped lines in the test structs. |
35 #define FPL(x) FILE_PATH_LITERAL(x) | 35 #define FPL(x) FILE_PATH_LITERAL(x) |
36 | 36 |
(...skipping 2341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2378 file_util::VerifyPathControlledByUser( | 2378 file_util::VerifyPathControlledByUser( |
2379 base_dir_, text_file_, uid_, ok_gids_)); | 2379 base_dir_, text_file_, uid_, ok_gids_)); |
2380 EXPECT_TRUE( | 2380 EXPECT_TRUE( |
2381 file_util::VerifyPathControlledByUser( | 2381 file_util::VerifyPathControlledByUser( |
2382 sub_dir_, text_file_, uid_, ok_gids_)); | 2382 sub_dir_, text_file_, uid_, ok_gids_)); |
2383 } | 2383 } |
2384 | 2384 |
2385 #endif // defined(OS_POSIX) | 2385 #endif // defined(OS_POSIX) |
2386 | 2386 |
2387 } // namespace | 2387 } // namespace |
OLD | NEW |