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

Unified Diff: webkit/appcache/appcache_group_unittest.cc

Issue 10540042: Move remaining webkit storage unit tests to content_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « content/content_tests.gypi ('k') | webkit/appcache/appcache_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_group_unittest.cc
diff --git a/webkit/appcache/appcache_group_unittest.cc b/webkit/appcache/appcache_group_unittest.cc
index 4fc86d8d045f4c6c268f1b280c22738fc5c12e4f..b3fd685f02fa0b5e6b15d45baf5767d93ec091ce 100644
--- a/webkit/appcache/appcache_group_unittest.cc
+++ b/webkit/appcache/appcache_group_unittest.cc
@@ -4,6 +4,7 @@
#include <string>
+#include "base/message_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/appcache/appcache.h"
#include "webkit/appcache/appcache_group.h"
@@ -95,9 +96,11 @@ class TestAppCacheHost : public AppCacheHost {
};
class AppCacheGroupTest : public testing::Test {
+ private:
+ MessageLoop message_loop_;
};
-TEST(AppCacheGroupTest, AddRemoveCache) {
+TEST_F(AppCacheGroupTest, AddRemoveCache) {
MockAppCacheService service;
scoped_refptr<AppCacheGroup> group(
new AppCacheGroup(&service, GURL("http://foo.com"), 111));
@@ -166,7 +169,7 @@ TEST(AppCacheGroupTest, AddRemoveCache) {
EXPECT_FALSE(group->newest_complete_cache()); // newest removed
}
-TEST(AppCacheGroupTest, CleanupUnusedGroup) {
+TEST_F(AppCacheGroupTest, CleanupUnusedGroup) {
MockAppCacheService service;
TestAppCacheFrontend frontend;
AppCacheGroup* group =
@@ -207,7 +210,7 @@ TEST(AppCacheGroupTest, CleanupUnusedGroup) {
EXPECT_EQ(frontend.last_status_, appcache::UNCACHED);
}
-TEST(AppCacheGroupTest, StartUpdate) {
+TEST_F(AppCacheGroupTest, StartUpdate) {
MockAppCacheService service;
scoped_refptr<AppCacheGroup> group(
new AppCacheGroup(&service, GURL("http://foo.com"), 111));
@@ -228,7 +231,7 @@ TEST(AppCacheGroupTest, StartUpdate) {
EXPECT_EQ(AppCacheGroup::IDLE, group->update_status());
}
-TEST(AppCacheGroupTest, CancelUpdate) {
+TEST_F(AppCacheGroupTest, CancelUpdate) {
MockAppCacheService service;
scoped_refptr<AppCacheGroup> group(
new AppCacheGroup(&service, GURL("http://foo.com"), 111));
@@ -247,7 +250,7 @@ TEST(AppCacheGroupTest, CancelUpdate) {
EXPECT_FALSE(observer.group_has_cache_);
}
-TEST(AppCacheGroupTest, QueueUpdate) {
+TEST_F(AppCacheGroupTest, QueueUpdate) {
MockAppCacheService service;
scoped_refptr<AppCacheGroup> group(
new AppCacheGroup(&service, GURL("http://foo.com"), 111));
« no previous file with comments | « content/content_tests.gypi ('k') | webkit/appcache/appcache_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698