summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-22 22:44:24 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-22 22:44:24 +0000
commit90ce00a68aaae65fb31e57920585780438e9d83f (patch)
tree313ba691237dfe7b82354fa2cfc1a1c751a0d529 /content
parent7cbc8f108a7b5aa48c41c2c9fd55de09fd52b6d1 (diff)
downloadchromium_src-90ce00a68aaae65fb31e57920585780438e9d83f.zip
chromium_src-90ce00a68aaae65fb31e57920585780438e9d83f.tar.gz
chromium_src-90ce00a68aaae65fb31e57920585780438e9d83f.tar.bz2
Make the membots happy again.
BUG=90215 TEST=bots Review URL: http://codereview.chromium.org/7495015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93722 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/appcache/chrome_appcache_service_unittest.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/content/browser/appcache/chrome_appcache_service_unittest.cc b/content/browser/appcache/chrome_appcache_service_unittest.cc
index da9451a..cabbd05 100644
--- a/content/browser/appcache/chrome_appcache_service_unittest.cc
+++ b/content/browser/appcache/chrome_appcache_service_unittest.cc
@@ -134,6 +134,10 @@ TEST_F(ChromeAppCacheServiceTest, KeepOnDestruction) {
EXPECT_EQ(2UL, origins.size());
EXPECT_TRUE(origins.find(kProtectedManifestURL.GetOrigin()) != origins.end());
EXPECT_TRUE(origins.find(kNormalManifestURL.GetOrigin()) != origins.end());
+
+ // Delete and let cleanup tasks run prior to returning.
+ appcache_service = NULL;
+ message_loop_.RunAllPending();
}
TEST_F(ChromeAppCacheServiceTest, RemoveOnDestruction) {
@@ -166,6 +170,10 @@ TEST_F(ChromeAppCacheServiceTest, RemoveOnDestruction) {
EXPECT_EQ(1UL, origins.size());
EXPECT_TRUE(origins.find(kProtectedManifestURL.GetOrigin()) != origins.end());
EXPECT_TRUE(origins.find(kNormalManifestURL.GetOrigin()) == origins.end());
+
+ // Delete and let cleanup tasks run prior to returning.
+ appcache_service = NULL;
+ message_loop_.RunAllPending();
}
} // namespace appcache