Index: chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc |
diff --git a/chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc b/chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc |
index c0c3de12d7e17979e8b329c0aa4c0a9d8c93abe4..2f4b1fb5f60be4f6be4194abed878398edb1de36 100644 |
--- a/chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc |
+++ b/chrome/browser/chromeos/drive/drive_file_stream_reader_unittest.cc |
@@ -63,7 +63,7 @@ class LocalReaderProxyTest : public ::testing::Test { |
TEST_F(LocalReaderProxyTest, Read) { |
// Open the file first. |
scoped_ptr<util::LocalFileReader> file_reader( |
- new util::LocalFileReader(worker_thread_->message_loop_proxy())); |
+ new util::LocalFileReader(worker_thread_->message_loop_proxy().get())); |
net::TestCompletionCallback callback; |
file_reader->Open(file_path_, 0, callback.callback()); |
ASSERT_EQ(net::OK, callback.WaitForResult()); |
@@ -84,7 +84,7 @@ TEST_F(LocalReaderProxyTest, ReadWithLimit) { |
// Open the file first. |
scoped_ptr<util::LocalFileReader> file_reader( |
- new util::LocalFileReader(worker_thread_->message_loop_proxy())); |
+ new util::LocalFileReader(worker_thread_->message_loop_proxy().get())); |
net::TestCompletionCallback callback; |
file_reader->Open(file_path_, 0, callback.callback()); |
ASSERT_EQ(net::OK, callback.WaitForResult()); |
@@ -330,8 +330,7 @@ TEST_F(DriveFileStreamReaderTest, Read) { |
// Create the reader, and initialize it. |
// In this case, the file is not yet locally cached. |
scoped_ptr<DriveFileStreamReader> reader(new DriveFileStreamReader( |
- GetFileSystemGetter(), |
- worker_thread_->message_loop_proxy())); |
+ GetFileSystemGetter(), worker_thread_->message_loop_proxy().get())); |
EXPECT_FALSE(reader->IsInitialized()); |
int error = net::ERR_FAILED; |
@@ -358,9 +357,8 @@ TEST_F(DriveFileStreamReaderTest, Read) { |
// Create second instance and initialize it. |
// In this case, the file should be cached one. |
- reader.reset( |
- new DriveFileStreamReader(GetFileSystemGetter(), |
- worker_thread_->message_loop_proxy())); |
+ reader.reset(new DriveFileStreamReader( |
+ GetFileSystemGetter(), worker_thread_->message_loop_proxy().get())); |
EXPECT_FALSE(reader->IsInitialized()); |
error = net::ERR_FAILED; |
@@ -400,8 +398,7 @@ TEST_F(DriveFileStreamReaderTest, ReadRange) { |
// Create the reader, and initialize it. |
// In this case, the file is not yet locally cached. |
scoped_ptr<DriveFileStreamReader> reader(new DriveFileStreamReader( |
- GetFileSystemGetter(), |
- worker_thread_->message_loop_proxy())); |
+ GetFileSystemGetter(), worker_thread_->message_loop_proxy().get())); |
EXPECT_FALSE(reader->IsInitialized()); |
int error = net::ERR_FAILED; |
@@ -433,9 +430,8 @@ TEST_F(DriveFileStreamReaderTest, ReadRange) { |
// Create second instance and initialize it. |
// In this case, the file should be cached one. |
- reader.reset( |
- new DriveFileStreamReader(GetFileSystemGetter(), |
- worker_thread_->message_loop_proxy())); |
+ reader.reset(new DriveFileStreamReader( |
+ GetFileSystemGetter(), worker_thread_->message_loop_proxy().get())); |
EXPECT_FALSE(reader->IsInitialized()); |
error = net::ERR_FAILED; |
@@ -471,8 +467,7 @@ TEST_F(DriveFileStreamReaderTest, OutOfRangeError) { |
// Create the reader, and initialize it. |
// In this case, the file is not yet locally cached. |
scoped_ptr<DriveFileStreamReader> reader(new DriveFileStreamReader( |
- GetFileSystemGetter(), |
- worker_thread_->message_loop_proxy())); |
+ GetFileSystemGetter(), worker_thread_->message_loop_proxy().get())); |
EXPECT_FALSE(reader->IsInitialized()); |
int error = net::ERR_FAILED; |