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

Side by Side Diff: chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.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 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
17 #include "base/threading/thread_task_runner_handle.h" 17 #include "base/threading/thread_task_runner_handle.h"
18 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" 18 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
19 #include "chrome/test/base/in_process_browser_test.h" 19 #include "chrome/test/base/in_process_browser_test.h"
20 #include "content/public/test/browser_test.h" 20 #include "content/public/test/browser_test.h"
21 #include "content/public/test/test_file_system_backend.h"
22 #include "content/public/test/test_file_system_context.h"
23 #include "content/public/test/test_utils.h" 21 #include "content/public/test/test_utils.h"
24 #include "storage/browser/fileapi/copy_or_move_file_validator.h" 22 #include "storage/browser/fileapi/copy_or_move_file_validator.h"
25 #include "storage/browser/fileapi/file_system_backend.h" 23 #include "storage/browser/fileapi/file_system_backend.h"
26 #include "storage/browser/fileapi/file_system_context.h" 24 #include "storage/browser/fileapi/file_system_context.h"
27 #include "storage/browser/fileapi/file_system_operation_runner.h" 25 #include "storage/browser/fileapi/file_system_operation_runner.h"
28 #include "storage/browser/fileapi/file_system_url.h" 26 #include "storage/browser/fileapi/file_system_url.h"
29 #include "storage/browser/fileapi/isolated_context.h" 27 #include "storage/browser/fileapi/isolated_context.h"
28 #include "storage/browser/test/test_file_system_backend.h"
29 #include "storage/browser/test/test_file_system_context.h"
30 #include "storage/common/fileapi/file_system_types.h" 30 #include "storage/common/fileapi/file_system_types.h"
31 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
32 32
33 namespace { 33 namespace {
34 34
35 const char kOrigin[] = "http://foo"; 35 const char kOrigin[] = "http://foo";
36 36
37 const char kValidImage[] = "RIFF0\0\0\0WEBPVP8 $\0\0\0\xB2\x02\0\x9D\x01\x2A" 37 const char kValidImage[] = "RIFF0\0\0\0WEBPVP8 $\0\0\0\xB2\x02\0\x9D\x01\x2A"
38 "\x01\0\x01\0\x2F\x9D\xCE\xE7s\xA8((((\x01\x9CK(\0" 38 "\x01\0\x01\0\x2F\x9D\xCE\xE7s\xA8((((\x01\x9CK(\0"
39 "\x05\xCE\xB3l\0\0\xFE\xD8\x80\0\0"; 39 "\x05\xCE\xB3l\0\0\xFE\xD8\x80\0\0";
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 test_file = test_file.AppendASCII("no_streams.webm"); 281 test_file = test_file.AppendASCII("no_streams.webm");
282 MoveTestFromFile("no_streams.webm", test_file, false); 282 MoveTestFromFile("no_streams.webm", test_file, false);
283 } 283 }
284 284
285 IN_PROC_BROWSER_TEST_F(MediaFileValidatorTest, ValidVideo) { 285 IN_PROC_BROWSER_TEST_F(MediaFileValidatorTest, ValidVideo) {
286 base::FilePath test_file = GetMediaTestDir(); 286 base::FilePath test_file = GetMediaTestDir();
287 ASSERT_FALSE(test_file.empty()); 287 ASSERT_FALSE(test_file.empty());
288 test_file = test_file.AppendASCII("bear-320x240-multitrack.webm"); 288 test_file = test_file.AppendASCII("bear-320x240-multitrack.webm");
289 MoveTestFromFile("multitrack.webm", test_file, true); 289 MoveTestFromFile("multitrack.webm", test_file, true);
290 } 290 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698