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

Unified Diff: components/gcm_driver/instance_id/instance_id_driver_unittest.cc

Issue 1923953002: Integrate InstanceID with GCM crypto provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid5default
Patch Set: RunUntilIdle after deleting GCMDriver Created 4 years, 7 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
Index: components/gcm_driver/instance_id/instance_id_driver_unittest.cc
diff --git a/components/gcm_driver/instance_id/instance_id_driver_unittest.cc b/components/gcm_driver/instance_id/instance_id_driver_unittest.cc
index e34f5773d24d2464946c13cc0d57d0a1d0206944..7b4e722e01c9021fa2de916592c4e6e98abc86a9 100644
--- a/components/gcm_driver/instance_id/instance_id_driver_unittest.cc
+++ b/components/gcm_driver/instance_id/instance_id_driver_unittest.cc
@@ -120,7 +120,13 @@ void InstanceIDDriverTest::SetUp() {
RecreateInstanceIDDriver();
}
-void InstanceIDDriverTest::TearDown() {}
+void InstanceIDDriverTest::TearDown() {
+ driver_.reset();
+ gcm_driver_.reset();
+ // |gcm_driver_| owns a GCMKeyStore that owns a ProtoDatabaseImpl whose
+ // destructor deletes the underlying LevelDB on the task runner.
+ base::RunLoop().RunUntilIdle();
+}
void InstanceIDDriverTest::RecreateInstanceIDDriver() {
driver_.reset(new InstanceIDDriver(gcm_driver_.get()));
« no previous file with comments | « components/gcm_driver/instance_id/instance_id_driver.cc ('k') | components/gcm_driver/instance_id/instance_id_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698