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

Side by Side Diff: storage/browser/fileapi/transient_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 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 <memory> 5 #include <memory>
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "content/public/test/test_file_system_context.h"
14 #include "storage/browser/blob/scoped_file.h" 13 #include "storage/browser/blob/scoped_file.h"
15 #include "storage/browser/fileapi/file_system_context.h" 14 #include "storage/browser/fileapi/file_system_context.h"
16 #include "storage/browser/fileapi/file_system_operation_context.h" 15 #include "storage/browser/fileapi/file_system_operation_context.h"
17 #include "storage/browser/fileapi/isolated_context.h" 16 #include "storage/browser/fileapi/isolated_context.h"
18 #include "storage/browser/fileapi/transient_file_util.h" 17 #include "storage/browser/fileapi/transient_file_util.h"
18 #include "storage/browser/test/test_file_system_context.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 using storage::FileSystemURL; 21 using storage::FileSystemURL;
22 22
23 namespace content { 23 namespace content {
24 24
25 class TransientFileUtilTest : public testing::Test { 25 class TransientFileUtilTest : public testing::Test {
26 public: 26 public:
27 TransientFileUtilTest() {} 27 TransientFileUtilTest() {}
28 ~TransientFileUtilTest() override {} 28 ~TransientFileUtilTest() override {}
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 base::RunLoop().RunUntilIdle(); 113 base::RunLoop().RunUntilIdle();
114 114
115 // Now the temporary file and the transient filesystem must be gone too. 115 // Now the temporary file and the transient filesystem must be gone too.
116 ASSERT_FALSE(base::PathExists(temp_path)); 116 ASSERT_FALSE(base::PathExists(temp_path));
117 ASSERT_EQ(base::File::FILE_ERROR_NOT_FOUND, 117 ASSERT_EQ(base::File::FILE_ERROR_NOT_FOUND,
118 file_util()->GetFileInfo(NewOperationContext().get(), 118 file_util()->GetFileInfo(NewOperationContext().get(),
119 temp_url, &file_info, &path)); 119 temp_url, &file_info, &path));
120 } 120 }
121 121
122 } // namespace content 122 } // namespace content
OLDNEW
« no previous file with comments | « storage/browser/fileapi/timed_task_helper_unittest.cc ('k') | storage/browser/quota/quota_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698