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

Side by Side Diff: trunk/src/webkit/fileapi/sandbox_mount_point_provider_unittest.cc

Issue 15292007: Revert 200828 "Move webkit/fileapi/file_system_mount_point_provi..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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
Property Changes:
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/src/webkit/fileapi/sandbox_mount_point_provider_unittest.cc:r3734-4217,4606-5108,5177-5263
OLDNEW
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 "webkit/fileapi/sandbox_mount_point_provider.h" 5 #include "webkit/fileapi/sandbox_mount_point_provider.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/message_loop_proxy.h" 14 #include "base/message_loop_proxy.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" 17 #include "webkit/fileapi/file_system_mount_point_provider.h"
18 #include "webkit/fileapi/file_system_url.h" 18 #include "webkit/fileapi/file_system_url.h"
19 #include "webkit/fileapi/file_system_util.h" 19 #include "webkit/fileapi/file_system_util.h"
20 #include "webkit/fileapi/mock_file_system_options.h" 20 #include "webkit/fileapi/mock_file_system_options.h"
21 21
22 namespace fileapi { 22 namespace fileapi {
23 23
24 namespace { 24 namespace {
25 25
26 FileSystemURL CreateFileSystemURL(const char* path) { 26 FileSystemURL CreateFileSystemURL(const char* path) {
27 const GURL kOrigin("http://foo/"); 27 const GURL kOrigin("http://foo/");
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 provider.GetPermissionPolicy(CreateFileSystemURL(".b"), 193 provider.GetPermissionPolicy(CreateFileSystemURL(".b"),
194 kCreateFilePermissions)); 194 kCreateFilePermissions));
195 195
196 // A path that looks like a drive letter. 196 // A path that looks like a drive letter.
197 EXPECT_EQ(FILE_PERMISSION_ALWAYS_ALLOW, 197 EXPECT_EQ(FILE_PERMISSION_ALWAYS_ALLOW,
198 provider.GetPermissionPolicy(CreateFileSystemURL("c:"), 198 provider.GetPermissionPolicy(CreateFileSystemURL("c:"),
199 kCreateFilePermissions)); 199 kCreateFilePermissions));
200 } 200 }
201 201
202 } // namespace fileapi 202 } // namespace fileapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698