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

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

Issue 559063002: Remove webkit/browser/, point everything to storage/browser/ instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up DEPS per feedback Created 6 years, 3 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 "content/browser/fileapi/upload_file_system_file_element_reader.h" 5 #include "content/browser/fileapi/upload_file_system_file_element_reader.h"
6 6
7 #include "base/files/scoped_temp_dir.h" 7 #include "base/files/scoped_temp_dir.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "content/public/test/async_file_test_helper.h" 10 #include "content/public/test/async_file_test_helper.h"
11 #include "content/public/test/test_file_system_context.h" 11 #include "content/public/test/test_file_system_context.h"
12 #include "net/base/io_buffer.h" 12 #include "net/base/io_buffer.h"
13 #include "net/base/test_completion_callback.h" 13 #include "net/base/test_completion_callback.h"
14 #include "storage/browser/fileapi/file_system_backend.h"
15 #include "storage/browser/fileapi/file_system_context.h"
16 #include "storage/browser/fileapi/file_system_operation_context.h"
17 #include "storage/browser/fileapi/file_system_url.h"
14 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
15 #include "webkit/browser/fileapi/file_system_backend.h"
16 #include "webkit/browser/fileapi/file_system_context.h"
17 #include "webkit/browser/fileapi/file_system_operation_context.h"
18 #include "webkit/browser/fileapi/file_system_url.h"
19 19
20 using content::AsyncFileTestHelper; 20 using content::AsyncFileTestHelper;
21 using storage::FileSystemContext; 21 using storage::FileSystemContext;
22 using storage::FileSystemType; 22 using storage::FileSystemType;
23 using storage::FileSystemURL; 23 using storage::FileSystemURL;
24 24
25 namespace content { 25 namespace content {
26 26
27 namespace { 27 namespace {
28 28
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 TEST_F(UploadFileSystemFileElementReaderTest, WrongURL) { 274 TEST_F(UploadFileSystemFileElementReaderTest, WrongURL) {
275 const GURL wrong_url = GetFileSystemURL("wrong_file_name.dat"); 275 const GURL wrong_url = GetFileSystemURL("wrong_file_name.dat");
276 reader_.reset(new UploadFileSystemFileElementReader( 276 reader_.reset(new UploadFileSystemFileElementReader(
277 file_system_context_.get(), wrong_url, 0, kuint64max, base::Time())); 277 file_system_context_.get(), wrong_url, 0, kuint64max, base::Time()));
278 net::TestCompletionCallback init_callback; 278 net::TestCompletionCallback init_callback;
279 ASSERT_EQ(net::ERR_IO_PENDING, reader_->Init(init_callback.callback())); 279 ASSERT_EQ(net::ERR_IO_PENDING, reader_->Init(init_callback.callback()));
280 EXPECT_EQ(net::ERR_FILE_NOT_FOUND, init_callback.WaitForResult()); 280 EXPECT_EQ(net::ERR_FILE_NOT_FOUND, init_callback.WaitForResult());
281 } 281 }
282 282
283 } // namespace content 283 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698