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

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

Issue 157053010: Move async_file_test_helper.* to content/public/test/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-up with similarity=25 Created 6 years, 10 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 | Annotate | Revision Log
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/file_util.h" 6 #include "base/file_util.h"
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "content/public/test/async_file_test_helper.h"
12 #include "content/public/test/test_file_system_context.h" 13 #include "content/public/test/test_file_system_context.h"
13 #include "content/public/test/test_file_system_options.h" 14 #include "content/public/test/test_file_system_options.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "webkit/browser/fileapi/async_file_test_helper.h"
16 #include "webkit/browser/fileapi/file_system_context.h" 16 #include "webkit/browser/fileapi/file_system_context.h"
17 #include "webkit/browser/fileapi/isolated_context.h" 17 #include "webkit/browser/fileapi/isolated_context.h"
18 #include "webkit/browser/fileapi/obfuscated_file_util.h" 18 #include "webkit/browser/fileapi/obfuscated_file_util.h"
19 #include "webkit/browser/fileapi/plugin_private_file_system_backend.h" 19 #include "webkit/browser/fileapi/plugin_private_file_system_backend.h"
20 #include "webkit/common/fileapi/file_system_util.h" 20 #include "webkit/common/fileapi/file_system_util.h"
21 21
22 using fileapi::AsyncFileTestHelper; 22 using content::AsyncFileTestHelper;
23 using fileapi::FileSystemContext; 23 using fileapi::FileSystemContext;
24 using fileapi::FileSystemURL; 24 using fileapi::FileSystemURL;
25 using fileapi::IsolatedContext; 25 using fileapi::IsolatedContext;
26 26
27 namespace content { 27 namespace content {
28 28
29 namespace { 29 namespace {
30 30
31 const GURL kOrigin("http://www.example.com"); 31 const GURL kOrigin("http://www.example.com");
32 const std::string kPlugin1("plugin1"); 32 const std::string kPlugin1("plugin1");
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 kOrigin, filesystem_id2, kRootName)); 146 kOrigin, filesystem_id2, kRootName));
147 FileSystemURL file2 = CreateURL(root_url2, "foo"); 147 FileSystemURL file2 = CreateURL(root_url2, "foo");
148 EXPECT_FALSE(AsyncFileTestHelper::FileExists( 148 EXPECT_FALSE(AsyncFileTestHelper::FileExists(
149 context_.get(), file2, AsyncFileTestHelper::kDontCheckSize)); 149 context_.get(), file2, AsyncFileTestHelper::kDontCheckSize));
150 } 150 }
151 151
152 // TODO(kinuko,nhiroki): also test if DeleteOriginDataOnFileThread 152 // TODO(kinuko,nhiroki): also test if DeleteOriginDataOnFileThread
153 // works fine when there's multiple plugin partitions. 153 // works fine when there's multiple plugin partitions.
154 154
155 } // namespace content 155 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698