summaryrefslogtreecommitdiffstats
path: root/webkit/appcache
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-16 23:18:46 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-16 23:18:46 +0000
commitf33811ba10a82b0211e5da3abbcd2bd64e3fe6fc (patch)
treea62acd3a45df426f5f2b1855808d6f43be5586c1 /webkit/appcache
parentdf17beda0e565c0f72954524d87b85f216e4358c (diff)
downloadchromium_src-f33811ba10a82b0211e5da3abbcd2bd64e3fe6fc.zip
chromium_src-f33811ba10a82b0211e5da3abbcd2bd64e3fe6fc.tar.gz
chromium_src-f33811ba10a82b0211e5da3abbcd2bd64e3fe6fc.tar.bz2
GTTF: some more FRIEND_TEST_ALL_PREFIXES
TEST=none BUG=44549 Review URL: http://codereview.chromium.org/3161021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56253 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache')
-rw-r--r--webkit/appcache/appcache_update_job.h5
-rw-r--r--webkit/appcache/mock_appcache_storage.h27
2 files changed, 19 insertions, 13 deletions
diff --git a/webkit/appcache/appcache_update_job.h b/webkit/appcache/appcache_update_job.h
index d4a7d40..9d82e68 100644
--- a/webkit/appcache/appcache_update_job.h
+++ b/webkit/appcache/appcache_update_job.h
@@ -11,12 +11,12 @@
#include <string>
#include <vector>
+#include "base/gtest_prod_util.h"
#include "base/ref_counted.h"
#include "base/task.h"
#include "googleurl/src/gurl.h"
#include "net/base/completion_callback.h"
#include "net/url_request/url_request.h"
-#include "testing/gtest/include/gtest/gtest_prod.h"
#include "webkit/appcache/appcache.h"
#include "webkit/appcache/appcache_host.h"
#include "webkit/appcache/appcache_interfaces.h"
@@ -288,7 +288,8 @@ class AppCacheUpdateJob : public URLRequest::Delegate,
scoped_refptr<net::CancelableCompletionCallback<AppCacheUpdateJob> >
policy_callback_;
- FRIEND_TEST(AppCacheGroupTest, QueueUpdate);
+ FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate);
+
DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob);
};
diff --git a/webkit/appcache/mock_appcache_storage.h b/webkit/appcache/mock_appcache_storage.h
index 36a1c2e..ad6ad65 100644
--- a/webkit/appcache/mock_appcache_storage.h
+++ b/webkit/appcache/mock_appcache_storage.h
@@ -9,6 +9,7 @@
#include <map>
#include <vector>
+#include "base/gtest_prod_util.h"
#include "base/hash_tables.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
@@ -159,17 +160,21 @@ class MockAppCacheStorage : public AppCacheStorage {
GURL simulated_found_manifest_url_;
bool simulated_found_network_namespace_;
- FRIEND_TEST(MockAppCacheStorageTest, BasicFindMainResponse);
- FRIEND_TEST(MockAppCacheStorageTest, BasicFindMainFallbackResponse);
- FRIEND_TEST(MockAppCacheStorageTest, CreateGroup);
- FRIEND_TEST(MockAppCacheStorageTest, FindMainResponseExclusions);
- FRIEND_TEST(MockAppCacheStorageTest, FindMainResponseWithMultipleCandidates);
- FRIEND_TEST(MockAppCacheStorageTest, LoadCache_FarHit);
- FRIEND_TEST(MockAppCacheStorageTest, LoadGroupAndCache_FarHit);
- FRIEND_TEST(MockAppCacheStorageTest, MakeGroupObsolete);
- FRIEND_TEST(MockAppCacheStorageTest, StoreNewGroup);
- FRIEND_TEST(MockAppCacheStorageTest, StoreExistingGroup);
- FRIEND_TEST(MockAppCacheStorageTest, StoreExistingGroupExistingCache);
+ FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest, BasicFindMainResponse);
+ FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest,
+ BasicFindMainFallbackResponse);
+ FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest, CreateGroup);
+ FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest, FindMainResponseExclusions);
+ FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest,
+ FindMainResponseWithMultipleCandidates);
+ FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest, LoadCache_FarHit);
+ FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest, LoadGroupAndCache_FarHit);
+ FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest, MakeGroupObsolete);
+ FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest, StoreNewGroup);
+ FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest, StoreExistingGroup);
+ FRIEND_TEST_ALL_PREFIXES(MockAppCacheStorageTest,
+ StoreExistingGroupExistingCache);
+
DISALLOW_COPY_AND_ASSIGN(MockAppCacheStorage);
};