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

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

Issue 2368913003: Populate storage_unittests target. (Closed)
Patch Set: Removed unnecessary include from storage/browser/blob/blob_storage_context_unittest.cc. Created 4 years, 2 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 (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/media_galleries/fileapi/native_media_file_util.h" 5 #include "chrome/browser/media_galleries/fileapi/native_media_file_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
14 #include "base/files/scoped_temp_dir.h" 14 #include "base/files/scoped_temp_dir.h"
15 #include "base/format_macros.h" 15 #include "base/format_macros.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
18 #include "base/run_loop.h" 18 #include "base/run_loop.h"
19 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
20 #include "base/threading/thread_task_runner_handle.h" 20 #include "base/threading/thread_task_runner_handle.h"
21 #include "base/time/time.h" 21 #include "base/time/time.h"
22 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" 22 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
23 #include "content/public/test/mock_special_storage_policy.h"
24 #include "content/public/test/test_browser_thread.h" 23 #include "content/public/test/test_browser_thread.h"
25 #include "content/public/test/test_file_system_options.h"
26 #include "storage/browser/fileapi/external_mount_points.h" 24 #include "storage/browser/fileapi/external_mount_points.h"
27 #include "storage/browser/fileapi/file_system_backend.h" 25 #include "storage/browser/fileapi/file_system_backend.h"
28 #include "storage/browser/fileapi/file_system_context.h" 26 #include "storage/browser/fileapi/file_system_context.h"
29 #include "storage/browser/fileapi/file_system_operation_runner.h" 27 #include "storage/browser/fileapi/file_system_operation_runner.h"
30 #include "storage/browser/fileapi/file_system_url.h" 28 #include "storage/browser/fileapi/file_system_url.h"
31 #include "storage/browser/fileapi/isolated_context.h" 29 #include "storage/browser/fileapi/isolated_context.h"
32 #include "storage/browser/fileapi/native_file_util.h" 30 #include "storage/browser/fileapi/native_file_util.h"
31 #include "storage/browser/test/mock_special_storage_policy.h"
32 #include "storage/browser/test/test_file_system_options.h"
33 #include "testing/gtest/include/gtest/gtest.h" 33 #include "testing/gtest/include/gtest/gtest.h"
34 34
35 #define FPL(x) FILE_PATH_LITERAL(x) 35 #define FPL(x) FILE_PATH_LITERAL(x)
36 36
37 using storage::FileSystemOperation; 37 using storage::FileSystemOperation;
38 using storage::FileSystemURL; 38 using storage::FileSystemURL;
39 39
40 namespace { 40 namespace {
41 41
42 typedef FileSystemOperation::FileEntryList FileEntryList; 42 typedef FileSystemOperation::FileEntryList FileEntryList;
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 expected_error = base::File::FILE_OK; 566 expected_error = base::File::FILE_OK;
567 else 567 else
568 expected_error = base::File::FILE_ERROR_SECURITY; 568 expected_error = base::File::FILE_ERROR_SECURITY;
569 error = base::File::FILE_ERROR_FAILED; 569 error = base::File::FILE_ERROR_FAILED;
570 operation_runner()->CreateSnapshotFile(url, 570 operation_runner()->CreateSnapshotFile(url,
571 base::Bind(CreateSnapshotCallback, &error)); 571 base::Bind(CreateSnapshotCallback, &error));
572 base::RunLoop().RunUntilIdle(); 572 base::RunLoop().RunUntilIdle();
573 ASSERT_EQ(expected_error, error); 573 ASSERT_EQ(expected_error, error);
574 } 574 }
575 } 575 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698