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

Side by Side Diff: chrome/browser/chromeos/drive/drive_file_stream_reader_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 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 "chrome/browser/chromeos/drive/drive_file_stream_reader.h" 5 #include "chrome/browser/chromeos/drive/drive_file_stream_reader.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.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 "chrome/browser/chromeos/drive/drive_test_util.h" 14 #include "chrome/browser/chromeos/drive/drive_test_util.h"
15 #include "chrome/browser/chromeos/drive/fake_file_system.h" 15 #include "chrome/browser/chromeos/drive/fake_file_system.h"
16 #include "chrome/browser/chromeos/drive/file_system_core_util.h" 16 #include "chrome/browser/chromeos/drive/file_system_core_util.h"
17 #include "chrome/browser/chromeos/drive/local_file_reader.h" 17 #include "chrome/browser/chromeos/drive/local_file_reader.h"
18 #include "chrome/browser/drive/fake_drive_service.h" 18 #include "components/drive/service/fake_drive_service.h"
19 #include "chrome/browser/drive/test_util.h" 19 #include "components/drive/service/test_util.h"
20 #include "content/public/test/test_browser_thread_bundle.h" 20 #include "content/public/test/test_browser_thread_bundle.h"
21 #include "content/public/test/test_utils.h" 21 #include "content/public/test/test_utils.h"
22 #include "google_apis/drive/drive_api_parser.h" 22 #include "google_apis/drive/drive_api_parser.h"
23 #include "google_apis/drive/test_util.h" 23 #include "google_apis/drive/test_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 "net/http/http_byte_range.h" 27 #include "net/http/http_byte_range.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 29
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 ASSERT_TRUE(entry); 560 ASSERT_TRUE(entry);
561 EXPECT_TRUE(reader->IsInitialized()); 561 EXPECT_TRUE(reader->IsInitialized());
562 562
563 // Read data from the reader, again. 563 // Read data from the reader, again.
564 std::string second_content; 564 std::string second_content;
565 ASSERT_EQ(net::OK, test_util::ReadAllData(reader.get(), &second_content)); 565 ASSERT_EQ(net::OK, test_util::ReadAllData(reader.get(), &second_content));
566 EXPECT_EQ(0u, second_content.size()); 566 EXPECT_EQ(0u, second_content.size());
567 } 567 }
568 568
569 } // namespace drive 569 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/directory_loader_unittest.cc ('k') | chrome/browser/chromeos/drive/drive_integration_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698