diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-16 23:18:46 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-16 23:18:46 +0000 |
commit | f33811ba10a82b0211e5da3abbcd2bd64e3fe6fc (patch) | |
tree | a62acd3a45df426f5f2b1855808d6f43be5586c1 /webkit | |
parent | df17beda0e565c0f72954524d87b85f216e4358c (diff) | |
download | chromium_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')
-rw-r--r-- | webkit/appcache/appcache_update_job.h | 5 | ||||
-rw-r--r-- | webkit/appcache/mock_appcache_storage.h | 27 | ||||
-rw-r--r-- | webkit/database/database_tracker.h | 4 | ||||
-rw-r--r-- | webkit/glue/media/media_resource_loader_bridge_factory.h | 5 |
4 files changed, 24 insertions, 17 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); }; diff --git a/webkit/database/database_tracker.h b/webkit/database/database_tracker.h index 55b0e12..e4c8183 100644 --- a/webkit/database/database_tracker.h +++ b/webkit/database/database_tracker.h @@ -9,6 +9,7 @@ #include <set> #include "base/file_path.h" +#include "base/gtest_prod_util.h" #include "base/observer_list.h" #include "base/platform_file.h" #include "base/ref_counted.h" @@ -17,7 +18,6 @@ #include "base/string_util.h" #include "base/time.h" #include "net/base/completion_callback.h" -#include "testing/gtest/include/gtest/gtest_prod.h" #include "webkit/database/database_connections.h" namespace sql { @@ -272,7 +272,7 @@ class DatabaseTracker OriginDirectoriesMap incognito_origin_directories_; int incognito_origin_directories_generator_; - FRIEND_TEST(DatabaseTracker, TestHelper); + FRIEND_TEST_ALL_PREFIXES(DatabaseTracker, TestHelper); }; } // namespace webkit_database diff --git a/webkit/glue/media/media_resource_loader_bridge_factory.h b/webkit/glue/media/media_resource_loader_bridge_factory.h index 6408949..5f09235 100644 --- a/webkit/glue/media/media_resource_loader_bridge_factory.h +++ b/webkit/glue/media/media_resource_loader_bridge_factory.h @@ -5,7 +5,7 @@ #ifndef WEBKIT_GLUE_MEDIA_MEDIA_RESOURCE_LOADER_BRIDGE_FACTORY_H_ #define WEBKIT_GLUE_MEDIA_MEDIA_RESOURCE_LOADER_BRIDGE_FACTORY_H_ -#include "testing/gtest/include/gtest/gtest_prod.h" +#include "base/gtest_prod_util.h" #include "webkit/glue/resource_loader_bridge.h" namespace webkit_glue { @@ -44,7 +44,8 @@ class MediaResourceLoaderBridgeFactory { } private: - FRIEND_TEST(MediaResourceLoaderBridgeFactoryTest, GenerateHeaders); + FRIEND_TEST_ALL_PREFIXES(MediaResourceLoaderBridgeFactoryTest, + GenerateHeaders); // Returns a range request header using parameters |first_byte_position| and // |last_byte_position|. |