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

Side by Side Diff: content/browser/fileapi/transient_file_util_unittest.cc

Issue 810403004: [Storage] Blob Storage Refactoring pt 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed copyright Created 5 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
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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/files/file_path.h" 6 #include "base/files/file_path.h"
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "content/public/test/test_file_system_context.h" 11 #include "content/public/test/test_file_system_context.h"
12 #include "storage/browser/blob/scoped_file.h"
12 #include "storage/browser/fileapi/file_system_context.h" 13 #include "storage/browser/fileapi/file_system_context.h"
13 #include "storage/browser/fileapi/file_system_operation_context.h" 14 #include "storage/browser/fileapi/file_system_operation_context.h"
14 #include "storage/browser/fileapi/isolated_context.h" 15 #include "storage/browser/fileapi/isolated_context.h"
15 #include "storage/browser/fileapi/transient_file_util.h" 16 #include "storage/browser/fileapi/transient_file_util.h"
16 #include "storage/common/blob/scoped_file.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using storage::FileSystemURL; 19 using storage::FileSystemURL;
20 20
21 namespace content { 21 namespace content {
22 22
23 class TransientFileUtilTest : public testing::Test { 23 class TransientFileUtilTest : public testing::Test {
24 public: 24 public:
25 TransientFileUtilTest() {} 25 TransientFileUtilTest() {}
26 ~TransientFileUtilTest() override {} 26 ~TransientFileUtilTest() override {}
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 base::RunLoop().RunUntilIdle(); 111 base::RunLoop().RunUntilIdle();
112 112
113 // Now the temporary file and the transient filesystem must be gone too. 113 // Now the temporary file and the transient filesystem must be gone too.
114 ASSERT_FALSE(base::PathExists(temp_path)); 114 ASSERT_FALSE(base::PathExists(temp_path));
115 ASSERT_EQ(base::File::FILE_ERROR_NOT_FOUND, 115 ASSERT_EQ(base::File::FILE_ERROR_NOT_FOUND,
116 file_util()->GetFileInfo(NewOperationContext().get(), 116 file_util()->GetFileInfo(NewOperationContext().get(),
117 temp_url, &file_info, &path)); 117 temp_url, &file_info, &path));
118 } 118 }
119 119
120 } // namespace content 120 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698