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

Unified Diff: chrome/browser/chromeos/drive/drive_scheduler_unittest.cc

Issue 13445002: Remove fake uploader from Drive tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_scheduler_unittest.cc
diff --git a/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc b/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc
index c3f571a07b3134a386ba9ea555273fbb638b9526..c2f7c7a20b8df3351f4f9b43b9fa2c157cbac98a 100644
--- a/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc
+++ b/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc
@@ -36,31 +36,6 @@ class MockNetworkChangeNotifier : public net::NetworkChangeNotifier {
net::NetworkChangeNotifier::ConnectionType());
};
-class FakeDriveUploader : public google_apis::DriveUploaderInterface {
- public:
- FakeDriveUploader() {}
- virtual ~FakeDriveUploader() {}
-
- // DriveUploaderInterface overrides.
- virtual void UploadNewFile(
- const std::string& parent_resource_id,
- const base::FilePath& drive_file_path,
- const base::FilePath& local_file_path,
- const std::string& title,
- const std::string& content_type,
- const google_apis::UploadCompletionCallback& callback) OVERRIDE {
- }
-
- virtual void UploadExistingFile(
- const std::string& resource_id,
- const base::FilePath& drive_file_path,
- const base::FilePath& local_file_path,
- const std::string& content_type,
- const std::string& etag,
- const google_apis::UploadCompletionCallback& callback) OVERRIDE {
- }
-};
-
void CopyResourceIdFromGetResourceEntryCallback(
std::vector<std::string>* id_list_out,
const std::string& requested_id,
@@ -88,11 +63,10 @@ class DriveSchedulerTest : public testing::Test {
"chromeos/gdata/account_metadata.json");
fake_drive_service_->LoadAppListForDriveApi(
"chromeos/drive/applist.json");
- fake_uploader_.reset(new FakeDriveUploader);
scheduler_.reset(new DriveScheduler(profile_.get(),
fake_drive_service_.get(),
- fake_uploader_.get()));
+ NULL));
scheduler_->Initialize();
scheduler_->SetDisableThrottling(true);
@@ -145,7 +119,6 @@ class DriveSchedulerTest : public testing::Test {
scoped_ptr<DriveScheduler> scheduler_;
scoped_ptr<MockNetworkChangeNotifier> mock_network_change_notifier_;
scoped_ptr<google_apis::FakeDriveService> fake_drive_service_;
- scoped_ptr<FakeDriveUploader> fake_uploader_;
};
TEST_F(DriveSchedulerTest, GetAboutResource) {
« no previous file with comments | « chrome/browser/chromeos/drive/drive_file_system_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698