OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "webkit/fileapi/file_system_path_manager.h" | 5 #include "webkit/fileapi/file_system_path_manager.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_callback_factory.h" | 13 #include "base/memory/scoped_callback_factory.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/scoped_temp_dir.h" | |
16 #include "base/message_loop.h" | 15 #include "base/message_loop.h" |
17 #include "base/message_loop_proxy.h" | 16 #include "base/message_loop_proxy.h" |
| 17 #include "base/scoped_temp_dir.h" |
18 #include "base/sys_string_conversions.h" | 18 #include "base/sys_string_conversions.h" |
19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "webkit/fileapi/file_system_util.h" | 22 #include "webkit/fileapi/file_system_util.h" |
23 #include "webkit/fileapi/sandbox_mount_point_provider.h" | 23 #include "webkit/fileapi/sandbox_mount_point_provider.h" |
24 #include "webkit/quota/special_storage_policy.h" | 24 #include "webkit/quota/special_storage_policy.h" |
25 | 25 |
26 namespace fileapi { | 26 namespace fileapi { |
27 namespace { | 27 namespace { |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kIsRestrictedNameTestCases); ++i) { | 408 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kIsRestrictedNameTestCases); ++i) { |
409 SCOPED_TRACE(testing::Message() << "IsRestrictedName #" << i << " " | 409 SCOPED_TRACE(testing::Message() << "IsRestrictedName #" << i << " " |
410 << kIsRestrictedNameTestCases[i].name); | 410 << kIsRestrictedNameTestCases[i].name); |
411 FilePath name(kIsRestrictedNameTestCases[i].name); | 411 FilePath name(kIsRestrictedNameTestCases[i].name); |
412 EXPECT_EQ(kIsRestrictedNameTestCases[i].expected_dangerous, | 412 EXPECT_EQ(kIsRestrictedNameTestCases[i].expected_dangerous, |
413 manager->IsRestrictedFileName(kFileSystemTypeTemporary, name)); | 413 manager->IsRestrictedFileName(kFileSystemTypeTemporary, name)); |
414 } | 414 } |
415 } | 415 } |
416 | 416 |
417 } // namespace fileapi | 417 } // namespace fileapi |
OLD | NEW |