Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: webkit/fileapi/file_system_path_manager_unittest.cc

Issue 7048007: Move scoped_temp_dir and scoped_native_library back from base/memory to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unknwn Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_origin_database_unittest.cc ('k') | webkit/fileapi/file_system_quota_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698