| Index: extensions/browser/api/declarative_webrequest/webrequest_condition_unittest.cc
|
| diff --git a/extensions/browser/api/declarative_webrequest/webrequest_condition_unittest.cc b/extensions/browser/api/declarative_webrequest/webrequest_condition_unittest.cc
|
| index 64a9bc8a8fab2fc6e1a63f8104fc3b84f55b7e6f..12d14bd1da1ae639b6242763a2e2d5aa2e6da6ca 100644
|
| --- a/extensions/browser/api/declarative_webrequest/webrequest_condition_unittest.cc
|
| +++ b/extensions/browser/api/declarative_webrequest/webrequest_condition_unittest.cc
|
| @@ -89,11 +89,13 @@ TEST(WebRequestConditionTest, CreateCondition) {
|
| content::ResourceRequestInfo::AllocateForTesting(
|
| match_request.get(),
|
| content::RESOURCE_TYPE_MAIN_FRAME,
|
| - NULL,
|
| - -1,
|
| - -1,
|
| - -1,
|
| - false);
|
| + NULL, // context
|
| + -1, // render_process_id
|
| + -1, // render_view_id
|
| + -1, // render_frame_id
|
| + true, // is_main_frame
|
| + false, // parent_is_main_frame
|
| + false); // is_async
|
| EXPECT_TRUE(result->IsFulfilled(request_data));
|
|
|
| const GURL https_url("https://www.example.com");
|
| @@ -106,11 +108,13 @@ TEST(WebRequestConditionTest, CreateCondition) {
|
| content::ResourceRequestInfo::AllocateForTesting(
|
| wrong_resource_type.get(),
|
| content::RESOURCE_TYPE_SUB_FRAME,
|
| - NULL,
|
| - -1,
|
| - -1,
|
| - -1,
|
| - false);
|
| + NULL, // context
|
| + -1, // render_process_id
|
| + -1, // render_view_id
|
| + -1, // render_frame_id
|
| + false, // is_main_frame
|
| + false, // parent_is_main_frame
|
| + false); // is_async
|
| EXPECT_FALSE(result->IsFulfilled(request_data));
|
| }
|
|
|
| @@ -152,11 +156,13 @@ TEST(WebRequestConditionTest, CreateConditionFirstPartyForCookies) {
|
| content::ResourceRequestInfo::AllocateForTesting(
|
| match_request.get(),
|
| content::RESOURCE_TYPE_MAIN_FRAME,
|
| - NULL,
|
| - -1,
|
| - -1,
|
| - -1,
|
| - false);
|
| + NULL, // context
|
| + -1, // render_process_id
|
| + -1, // render_view_id
|
| + -1, // render_frame_id
|
| + true, // is_main_frame
|
| + false, // parent_is_main_frame
|
| + false); // is_async
|
| EXPECT_TRUE(result->IsFulfilled(request_data));
|
| }
|
|
|
|
|