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

Side by Side Diff: chrome/browser/chromeos/drive/fileapi/webkit_file_stream_reader_impl_unittest.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/chromeos/drive/fileapi/webkit_file_stream_reader_impl.h " 5 #include "chrome/browser/chromeos/drive/fileapi/webkit_file_stream_reader_impl.h "
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "chrome/browser/chromeos/drive/drive_test_util.h" 15 #include "chrome/browser/chromeos/drive/drive_test_util.h"
16 #include "chrome/browser/chromeos/drive/fake_file_system.h" 16 #include "chrome/browser/chromeos/drive/fake_file_system.h"
17 #include "chrome/browser/chromeos/drive/file_system_core_util.h" 17 #include "chrome/browser/chromeos/drive/file_system_core_util.h"
18 #include "chrome/browser/chromeos/drive/file_system_interface.h" 18 #include "chrome/browser/chromeos/drive/file_system_interface.h"
19 #include "chrome/browser/drive/fake_drive_service.h" 19 #include "components/drive/service/fake_drive_service.h"
20 #include "chrome/browser/drive/test_util.h" 20 #include "components/drive/service/test_util.h"
21 #include "content/public/test/test_browser_thread_bundle.h" 21 #include "content/public/test/test_browser_thread_bundle.h"
22 #include "google_apis/drive/drive_api_parser.h" 22 #include "google_apis/drive/drive_api_parser.h"
23 #include "google_apis/drive/time_util.h" 23 #include "google_apis/drive/time_util.h"
24 #include "net/base/io_buffer.h" 24 #include "net/base/io_buffer.h"
25 #include "net/base/net_errors.h" 25 #include "net/base/net_errors.h"
26 #include "net/base/test_completion_callback.h" 26 #include "net/base/test_completion_callback.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 28
29 namespace drive { 29 namespace drive {
30 namespace internal { 30 namespace internal {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 base::Time::FromInternalValue(1))); 208 base::Time::FromInternalValue(1)));
209 209
210 net::TestInt64CompletionCallback callback; 210 net::TestInt64CompletionCallback callback;
211 int64 result = reader->GetLength(callback.callback()); 211 int64 result = reader->GetLength(callback.callback());
212 result = callback.GetResult(result); 212 result = callback.GetResult(result);
213 EXPECT_EQ(net::ERR_UPLOAD_FILE_CHANGED, result); 213 EXPECT_EQ(net::ERR_UPLOAD_FILE_CHANGED, result);
214 } 214 }
215 215
216 } // namespace internal 216 } // namespace internal
217 } // namespace drive 217 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.cc ('k') | chrome/browser/chromeos/drive/job_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698