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

Unified Diff: chrome/browser/drive/drive_app_registry_unittest.cc

Issue 134213003: Revert of Implement DriveAppRegistry::UninstallApp() and GetAppList(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/drive/drive_app_registry.cc ('k') | chrome/browser/drive/fake_drive_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/drive_app_registry_unittest.cc
diff --git a/chrome/browser/drive/drive_app_registry_unittest.cc b/chrome/browser/drive/drive_app_registry_unittest.cc
index 77d828f0573f7ffa643b6005dc22354ed29c7dbc..1343f45f782ea612e34aec2afe31e5eedfa1b105 100644
--- a/chrome/browser/drive/drive_app_registry_unittest.cc
+++ b/chrome/browser/drive/drive_app_registry_unittest.cc
@@ -137,37 +137,4 @@
util::FindPreferredIcon(icons, kMediumSize + 3).spec());
}
-TEST_F(DriveAppRegistryTest, UninstallDriveApp) {
- apps_registry_->Update();
- base::RunLoop().RunUntilIdle();
-
- std::vector<DriveAppInfo> apps;
- apps_registry_->GetAppList(&apps);
- size_t original_count = apps.size();
-
- // Uninstall an existing app.
- google_apis::GDataErrorCode error = google_apis::GDATA_OTHER_ERROR;
- apps_registry_->UninstallApp(
- "123456788192",
- google_apis::test_util::CreateCopyResultCallback(&error));
- base::RunLoop().RunUntilIdle();
- EXPECT_EQ(error, google_apis::HTTP_SUCCESS);
-
- // Check that the number of apps is decreased by one.
- apps_registry_->GetAppList(&apps);
- EXPECT_EQ(original_count - 1, apps.size());
-
- // Try to uninstall a non-existing app.
- error = google_apis::GDATA_OTHER_ERROR;
- apps_registry_->UninstallApp(
- "non-existing-app-id",
- google_apis::test_util::CreateCopyResultCallback(&error));
- base::RunLoop().RunUntilIdle();
- EXPECT_EQ(error, google_apis::HTTP_NOT_FOUND);
-
- // Check that the number is not changed this time.
- apps_registry_->GetAppList(&apps);
- EXPECT_EQ(original_count - 1, apps.size());
-}
-
} // namespace drive
« no previous file with comments | « chrome/browser/drive/drive_app_registry.cc ('k') | chrome/browser/drive/fake_drive_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698