| OLD | NEW |
| 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/file_util.h" | 10 #include "base/file_util.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
| 15 #include "base/task/sequenced_task_runner.h" | 15 #include "base/sequenced_task_runner.h" |
| 16 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
| 17 #include "chrome/browser/chromeos/drive/fake_file_system.h" | 17 #include "chrome/browser/chromeos/drive/fake_file_system.h" |
| 18 #include "chrome/browser/chromeos/drive/file_reader.h" | 18 #include "chrome/browser/chromeos/drive/file_reader.h" |
| 19 #include "chrome/browser/chromeos/drive/file_system_util.h" | 19 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 20 #include "chrome/browser/chromeos/drive/test_util.h" | 20 #include "chrome/browser/chromeos/drive/test_util.h" |
| 21 #include "chrome/browser/google_apis/fake_drive_service.h" | 21 #include "chrome/browser/google_apis/fake_drive_service.h" |
| 22 #include "chrome/browser/google_apis/task_util.h" | 22 #include "chrome/browser/google_apis/task_util.h" |
| 23 #include "chrome/browser/google_apis/test_util.h" | 23 #include "chrome/browser/google_apis/test_util.h" |
| 24 #include "content/public/test/test_browser_thread.h" | 24 #include "content/public/test/test_browser_thread.h" |
| 25 #include "net/base/io_buffer.h" | 25 #include "net/base/io_buffer.h" |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 | 481 |
| 482 // Read data from the reader, again. | 482 // Read data from the reader, again. |
| 483 std::string second_content; | 483 std::string second_content; |
| 484 ASSERT_EQ(net::OK, test_util::ReadAllData(reader.get(), &second_content)); | 484 ASSERT_EQ(net::OK, test_util::ReadAllData(reader.get(), &second_content)); |
| 485 | 485 |
| 486 // The same content is expected. | 486 // The same content is expected. |
| 487 EXPECT_EQ(first_content, second_content); | 487 EXPECT_EQ(first_content, second_content); |
| 488 } | 488 } |
| 489 | 489 |
| 490 } // namespace drive | 490 } // namespace drive |
| OLD | NEW |