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

Side by Side Diff: chrome/browser/media_galleries/fileapi/native_media_file_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
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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 data_dir_.path(), base::MessageLoopProxy::current().get())); 127 data_dir_.path(), base::MessageLoopProxy::current().get()));
128 128
129 file_system_context_ = new fileapi::FileSystemContext( 129 file_system_context_ = new fileapi::FileSystemContext(
130 base::MessageLoopProxy::current().get(), 130 base::MessageLoopProxy::current().get(),
131 base::MessageLoopProxy::current().get(), 131 base::MessageLoopProxy::current().get(),
132 fileapi::ExternalMountPoints::CreateRefCounted().get(), 132 fileapi::ExternalMountPoints::CreateRefCounted().get(),
133 storage_policy.get(), 133 storage_policy.get(),
134 NULL, 134 NULL,
135 additional_providers.Pass(), 135 additional_providers.Pass(),
136 data_dir_.path(), 136 data_dir_.path(),
137 fileapi::CreateAllowFileAccessOptions()); 137 content::CreateAllowFileAccessOptions());
138 138
139 filesystem_id_ = isolated_context()->RegisterFileSystemForPath( 139 filesystem_id_ = isolated_context()->RegisterFileSystemForPath(
140 fileapi::kFileSystemTypeNativeMedia, root_path(), NULL); 140 fileapi::kFileSystemTypeNativeMedia, root_path(), NULL);
141 141
142 isolated_context()->AddReference(filesystem_id_); 142 isolated_context()->AddReference(filesystem_id_);
143 } 143 }
144 144
145 virtual void TearDown() { 145 virtual void TearDown() {
146 isolated_context()->RemoveReference(filesystem_id_); 146 isolated_context()->RemoveReference(filesystem_id_);
147 file_system_context_ = NULL; 147 file_system_context_ = NULL;
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 expected_error = base::PLATFORM_FILE_OK; 561 expected_error = base::PLATFORM_FILE_OK;
562 else 562 else
563 expected_error = base::PLATFORM_FILE_ERROR_SECURITY; 563 expected_error = base::PLATFORM_FILE_ERROR_SECURITY;
564 error = base::PLATFORM_FILE_ERROR_FAILED; 564 error = base::PLATFORM_FILE_ERROR_FAILED;
565 operation_runner()->CreateSnapshotFile(url, 565 operation_runner()->CreateSnapshotFile(url,
566 base::Bind(CreateSnapshotCallback, &error)); 566 base::Bind(CreateSnapshotCallback, &error));
567 base::MessageLoop::current()->RunUntilIdle(); 567 base::MessageLoop::current()->RunUntilIdle();
568 ASSERT_EQ(expected_error, error); 568 ASSERT_EQ(expected_error, error);
569 } 569 }
570 } 570 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698