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

Unified Diff: chrome/browser/extensions/extension_info_map_unittest.cc

Issue 7024056: Handle extension webrequest API on the IO thread. This speeds up blocking event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 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
Index: chrome/browser/extensions/extension_info_map_unittest.cc
diff --git a/chrome/browser/extensions/extension_info_map_unittest.cc b/chrome/browser/extensions/extension_info_map_unittest.cc
index 66dcb7ced0b496d5a62a7aa60d9d016c6910d7cf..a3556738ef362dedeb7d9894668d6c377e5e644c 100644
--- a/chrome/browser/extensions/extension_info_map_unittest.cc
+++ b/chrome/browser/extensions/extension_info_map_unittest.cc
@@ -84,9 +84,9 @@ TEST_F(ExtensionInfoMapTest, RefCounting) {
EXPECT_TRUE(extension3->HasOneRef());
// Add a ref to each extension and give it to the info map.
- info_map->AddExtension(extension1);
- info_map->AddExtension(extension2);
- info_map->AddExtension(extension3);
+ info_map->AddExtension(extension1, base::Time(), false);
+ info_map->AddExtension(extension2, base::Time(), false);
+ info_map->AddExtension(extension3, base::Time(), false);
// Release extension1, and the info map should have the only ref.
const Extension* weak_extension1 = extension1;
@@ -109,8 +109,8 @@ TEST_F(ExtensionInfoMapTest, Properties) {
scoped_refptr<Extension> extension1(CreateExtension("extension1"));
scoped_refptr<Extension> extension2(CreateExtension("extension2"));
- info_map->AddExtension(extension1);
- info_map->AddExtension(extension2);
+ info_map->AddExtension(extension1, base::Time(), false);
+ info_map->AddExtension(extension2, base::Time(), false);
EXPECT_EQ(2u, info_map->extensions().size());
EXPECT_EQ(extension1.get(), info_map->extensions().GetByID(extension1->id()));
@@ -130,8 +130,8 @@ TEST_F(ExtensionInfoMapTest, CheckPermissions) {
ASSERT_TRUE(app->is_app());
ASSERT_TRUE(app->web_extent().MatchesURL(app_url));
- info_map->AddExtension(app);
- info_map->AddExtension(extension);
+ info_map->AddExtension(app, base::Time(), false);
+ info_map->AddExtension(extension, base::Time(), false);
// The app should have the notifications permission, either from a
// chrome-extension URL or from its web extent.
« no previous file with comments | « chrome/browser/extensions/extension_info_map.cc ('k') | chrome/browser/extensions/extension_webrequest_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698