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

Side by Side Diff: chrome/browser/media_galleries/fileapi/picasa_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 picasa_data_provider_.get()))); 244 picasa_data_provider_.get())));
245 245
246 file_system_context_ = new fileapi::FileSystemContext( 246 file_system_context_ = new fileapi::FileSystemContext(
247 base::MessageLoopProxy::current().get(), 247 base::MessageLoopProxy::current().get(),
248 base::MessageLoopProxy::current().get(), 248 base::MessageLoopProxy::current().get(),
249 fileapi::ExternalMountPoints::CreateRefCounted().get(), 249 fileapi::ExternalMountPoints::CreateRefCounted().get(),
250 storage_policy.get(), 250 storage_policy.get(),
251 NULL, 251 NULL,
252 additional_providers.Pass(), 252 additional_providers.Pass(),
253 profile_dir_.path(), 253 profile_dir_.path(),
254 fileapi::CreateAllowFileAccessOptions()); 254 content::CreateAllowFileAccessOptions());
255 } 255 }
256 256
257 virtual void TearDown() OVERRIDE { 257 virtual void TearDown() OVERRIDE {
258 SynchronouslyRunOnMediaTaskRunner( 258 SynchronouslyRunOnMediaTaskRunner(
259 base::Bind(&PicasaFileUtilTest::TearDownOnMediaTaskRunner, 259 base::Bind(&PicasaFileUtilTest::TearDownOnMediaTaskRunner,
260 base::Unretained(this))); 260 base::Unretained(this)));
261 } 261 }
262 262
263 protected: 263 protected:
264 void SetUpOnMediaTaskRunner() { 264 void SetUpOnMediaTaskRunner() {
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 operation_runner()->CreateSnapshotFile( 587 operation_runner()->CreateSnapshotFile(
588 CreateURL(std::string(kPicasaDirAlbums) + 588 CreateURL(std::string(kPicasaDirAlbums) +
589 "/albumname 2013-04-16/mapped_name.jpg"), 589 "/albumname 2013-04-16/mapped_name.jpg"),
590 snapshot_callback); 590 snapshot_callback);
591 loop.Run(); 591 loop.Run();
592 EXPECT_EQ(base::PLATFORM_FILE_OK, error); 592 EXPECT_EQ(base::PLATFORM_FILE_OK, error);
593 EXPECT_EQ(image_path, platform_path_result); 593 EXPECT_EQ(image_path, platform_path_result);
594 } 594 }
595 595
596 } // namespace picasa 596 } // namespace picasa
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698