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

Side by Side Diff: chrome/browser/media_galleries/fileapi/picasa_file_util_unittest.cc

Issue 2815743002: Move a couple of blob tests next to the files they cover. (Closed)
Patch Set: Fix gn check, take 2. Created 3 years, 8 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
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 "chrome/browser/media_galleries/fileapi/picasa_file_util.h" 5 #include "chrome/browser/media_galleries/fileapi/picasa_file_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 15 matching lines...) Expand all
26 #include "base/strings/stringprintf.h" 26 #include "base/strings/stringprintf.h"
27 #include "base/threading/thread_task_runner_handle.h" 27 #include "base/threading/thread_task_runner_handle.h"
28 #include "base/time/time.h" 28 #include "base/time/time.h"
29 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" 29 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
30 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h" 30 #include "chrome/browser/media_galleries/fileapi/media_path_filter.h"
31 #include "chrome/browser/media_galleries/fileapi/picasa_data_provider.h" 31 #include "chrome/browser/media_galleries/fileapi/picasa_data_provider.h"
32 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h" 32 #include "chrome/browser/media_galleries/imported_media_gallery_registry.h"
33 #include "chrome/common/media_galleries/picasa_types.h" 33 #include "chrome/common/media_galleries/picasa_types.h"
34 #include "chrome/common/media_galleries/pmp_constants.h" 34 #include "chrome/common/media_galleries/pmp_constants.h"
35 #include "content/public/browser/browser_thread.h" 35 #include "content/public/browser/browser_thread.h"
36 #include "content/public/test/mock_special_storage_policy.h"
37 #include "content/public/test/test_browser_thread.h" 36 #include "content/public/test/test_browser_thread.h"
38 #include "content/public/test/test_file_system_options.h"
39 #include "storage/browser/blob/shareable_file_reference.h" 37 #include "storage/browser/blob/shareable_file_reference.h"
40 #include "storage/browser/fileapi/async_file_util.h" 38 #include "storage/browser/fileapi/async_file_util.h"
41 #include "storage/browser/fileapi/external_mount_points.h" 39 #include "storage/browser/fileapi/external_mount_points.h"
42 #include "storage/browser/fileapi/file_system_context.h" 40 #include "storage/browser/fileapi/file_system_context.h"
43 #include "storage/browser/fileapi/file_system_operation_context.h" 41 #include "storage/browser/fileapi/file_system_operation_context.h"
44 #include "storage/browser/fileapi/file_system_operation_runner.h" 42 #include "storage/browser/fileapi/file_system_operation_runner.h"
45 #include "storage/browser/fileapi/isolated_context.h" 43 #include "storage/browser/fileapi/isolated_context.h"
44 #include "storage/browser/test/mock_special_storage_policy.h"
45 #include "storage/browser/test/test_file_system_options.h"
46 #include "testing/gtest/include/gtest/gtest.h" 46 #include "testing/gtest/include/gtest/gtest.h"
47 47
48 using storage::FileSystemOperationContext; 48 using storage::FileSystemOperationContext;
49 using storage::FileSystemOperation; 49 using storage::FileSystemOperation;
50 using storage::FileSystemURL; 50 using storage::FileSystemURL;
51 51
52 namespace picasa { 52 namespace picasa {
53 53
54 namespace { 54 namespace {
55 55
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 operation_runner()->CreateSnapshotFile( 592 operation_runner()->CreateSnapshotFile(
593 CreateURL(std::string(kPicasaDirAlbums) + 593 CreateURL(std::string(kPicasaDirAlbums) +
594 "/albumname 2013-04-16/mapped_name.jpg"), 594 "/albumname 2013-04-16/mapped_name.jpg"),
595 snapshot_callback); 595 snapshot_callback);
596 loop.Run(); 596 loop.Run();
597 EXPECT_EQ(base::File::FILE_OK, error); 597 EXPECT_EQ(base::File::FILE_OK, error);
598 EXPECT_EQ(image_path, platform_path_result); 598 EXPECT_EQ(image_path, platform_path_result);
599 } 599 }
600 600
601 } // namespace picasa 601 } // namespace picasa
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698