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

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

Issue 18355004: google_apis: Move data files out of chrome/test/data/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix extension tests Created 7 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 | Annotate | Revision Log
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/webkit_file_stream_reader_impl.h" 5 #include "chrome/browser/chromeos/drive/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"
(...skipping 24 matching lines...) Expand all
35 : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) { 35 : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP) {
36 } 36 }
37 37
38 virtual void SetUp() OVERRIDE { 38 virtual void SetUp() OVERRIDE {
39 worker_thread_.reset(new base::Thread("WebkitFileStreamReaderImplTest")); 39 worker_thread_.reset(new base::Thread("WebkitFileStreamReaderImplTest"));
40 ASSERT_TRUE(worker_thread_->Start()); 40 ASSERT_TRUE(worker_thread_->Start());
41 41
42 // Initialize FakeDriveService. 42 // Initialize FakeDriveService.
43 fake_drive_service_.reset(new FakeDriveService); 43 fake_drive_service_.reset(new FakeDriveService);
44 fake_drive_service_->LoadResourceListForWapi( 44 fake_drive_service_->LoadResourceListForWapi(
45 "chromeos/gdata/root_feed.json"); 45 "gdata/root_feed.json");
46 fake_drive_service_->LoadAccountMetadataForWapi( 46 fake_drive_service_->LoadAccountMetadataForWapi(
47 "chromeos/gdata/account_metadata.json"); 47 "gdata/account_metadata.json");
48 48
49 // Create a testee instance. 49 // Create a testee instance.
50 fake_file_system_.reset( 50 fake_file_system_.reset(
51 new test_util::FakeFileSystem(fake_drive_service_.get())); 51 new test_util::FakeFileSystem(fake_drive_service_.get()));
52 fake_file_system_->Initialize(); 52 fake_file_system_->Initialize();
53 } 53 }
54 54
55 virtual void TearDown() OVERRIDE { 55 virtual void TearDown() OVERRIDE {
56 fake_file_system_.reset(); 56 fake_file_system_.reset();
57 fake_drive_service_.reset(); 57 fake_drive_service_.reset();
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 base::Time::FromInternalValue(1))); 215 base::Time::FromInternalValue(1)));
216 216
217 net::TestInt64CompletionCallback callback; 217 net::TestInt64CompletionCallback callback;
218 int64 result = reader->GetLength(callback.callback()); 218 int64 result = reader->GetLength(callback.callback());
219 result = callback.GetResult(result); 219 result = callback.GetResult(result);
220 EXPECT_EQ(net::ERR_UPLOAD_FILE_CHANGED, result); 220 EXPECT_EQ(net::ERR_UPLOAD_FILE_CHANGED, result);
221 } 221 }
222 222
223 } // namespace internal 223 } // namespace internal
224 } // namespace drive 224 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698