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

Side by Side Diff: chrome/browser/chromeos/drive/file_system_util_unittest.cc

Issue 137923003: Change fileapi namespace to content for files that are moved under content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 6 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/iphoto_file_util_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/chromeos/drive/file_system_util.h" 5 #include "chrome/browser/chromeos/drive/file_system_util.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 fileapi::ExternalMountPoints::CreateRefCounted(); 97 fileapi::ExternalMountPoints::CreateRefCounted();
98 scoped_refptr<fileapi::FileSystemContext> context( 98 scoped_refptr<fileapi::FileSystemContext> context(
99 new fileapi::FileSystemContext( 99 new fileapi::FileSystemContext(
100 base::MessageLoopProxy::current().get(), 100 base::MessageLoopProxy::current().get(),
101 base::MessageLoopProxy::current().get(), 101 base::MessageLoopProxy::current().get(),
102 mount_points.get(), 102 mount_points.get(),
103 NULL, // special_storage_policy 103 NULL, // special_storage_policy
104 NULL, // quota_manager_proxy, 104 NULL, // quota_manager_proxy,
105 ScopedVector<fileapi::FileSystemBackend>(), 105 ScopedVector<fileapi::FileSystemBackend>(),
106 temp_dir_.path(), // partition_path 106 temp_dir_.path(), // partition_path
107 fileapi::CreateAllowFileAccessOptions())); 107 content::CreateAllowFileAccessOptions()));
108 108
109 // Type:"external" + virtual_path:"drive/foo/bar" resolves to "drive/foo/bar". 109 // Type:"external" + virtual_path:"drive/foo/bar" resolves to "drive/foo/bar".
110 const std::string& drive_mount_name = 110 const std::string& drive_mount_name =
111 GetDriveMountPointPath().BaseName().AsUTF8Unsafe(); 111 GetDriveMountPointPath().BaseName().AsUTF8Unsafe();
112 mount_points->RegisterFileSystem( 112 mount_points->RegisterFileSystem(
113 drive_mount_name, 113 drive_mount_name,
114 fileapi::kFileSystemTypeDrive, 114 fileapi::kFileSystemTypeDrive,
115 fileapi::FileSystemMountOption(), 115 fileapi::FileSystemMountOption(),
116 GetDriveMountPointPath()); 116 GetDriveMountPointPath());
117 EXPECT_EQ( 117 EXPECT_EQ(
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 file = temp_dir.path().AppendASCII("test.txt"); 288 file = temp_dir.path().AppendASCII("test.txt");
289 std::string data = "Hello world!"; 289 std::string data = "Hello world!";
290 EXPECT_TRUE(google_apis::test_util::WriteStringToFile(file, data)); 290 EXPECT_TRUE(google_apis::test_util::WriteStringToFile(file, data));
291 EXPECT_FALSE(HasGDocFileExtension(file)); 291 EXPECT_FALSE(HasGDocFileExtension(file));
292 EXPECT_TRUE(ReadUrlFromGDocFile(file).is_empty()); 292 EXPECT_TRUE(ReadUrlFromGDocFile(file).is_empty());
293 EXPECT_TRUE(ReadResourceIdFromGDocFile(file).empty()); 293 EXPECT_TRUE(ReadResourceIdFromGDocFile(file).empty());
294 } 294 }
295 295
296 } // namespace util 296 } // namespace util
297 } // namespace drive 297 } // namespace drive
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/iphoto_file_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698