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

Unified Diff: content/browser/media/webrtc_identity_store_unittest.cc

Issue 1413563007: Fix ScopedTempDir in content_unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 5 years, 2 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: content/browser/media/webrtc_identity_store_unittest.cc
diff --git a/content/browser/media/webrtc_identity_store_unittest.cc b/content/browser/media/webrtc_identity_store_unittest.cc
index 4e52288dd252a28ce1935726735a5176997480cb..b97808d482711be187e0e407096528d31acb6679 100644
--- a/content/browser/media/webrtc_identity_store_unittest.cc
+++ b/content/browser/media/webrtc_identity_store_unittest.cc
@@ -82,6 +82,8 @@ class WebRtcIdentityStoreTest : public testing::Test {
webrtc_identity_store_->SetTaskRunnerForTesting(pool_owner_->pool());
}
+ void Stop() { webrtc_identity_store_ = nullptr; }
+
protected:
TestBrowserThreadBundle browser_thread_bundle_;
scoped_ptr<base::SequencedWorkerPoolOwner> pool_owner_;
@@ -355,6 +357,7 @@ TEST_F(WebRtcIdentityStoreTest, IdentityPersistentAcrossRestart) {
EXPECT_TRUE(completed_2);
EXPECT_EQ(cert_1, cert_2);
EXPECT_EQ(key_1, key_2);
+ Stop();
}
TEST_F(WebRtcIdentityStoreTest, HandleDBErrors) {
@@ -386,6 +389,8 @@ TEST_F(WebRtcIdentityStoreTest, HandleDBErrors) {
scoped_ptr<sql::Connection> db(new sql::Connection());
EXPECT_TRUE(db->Open(db_path));
EXPECT_EQ(0U, sql::test::CountSQLTables(db.get()));
+
+ Stop();
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698