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

Issue 2505663002: Add unit tests for testing Feature Policy features in frames, and for testing isFeatureEnabledForOr… (Closed)

Created:
4 years, 1 month ago by iclelland
Modified:
4 years, 1 month ago
Reviewers:
Mike West, raymes
CC:
blink-reviews, chromium-reviews, iclelland, lunalu1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add additional unit tests for Feature Policy. This adds tests for the blink::isFeatureEnabledInFrame and FeaturePolicy::isFeatureEnabledForOrigin APIs BUG=623682 Committed: https://crrev.com/f600666a8e1bf5f0227ace0f5a9c8ca75bb7eeab Cr-Commit-Position: refs/heads/master@{#432991}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -1 line) Patch
M third_party/WebKit/Source/core/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp View 1 chunk +131 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/feature_policy/FeaturePolicyTest.cpp View 1 2 chunks +22 lines, -1 line 0 comments Download

Messages

Total messages: 27 (12 generated)
iclelland
+r raymes -- Can you take a look at the new tests? +r mkwst -- ...
4 years, 1 month ago (2016-11-15 19:13:42 UTC) #5
raymes
https://codereview.chromium.org/2505663002/diff/1/third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp File third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp (right): https://codereview.chromium.org/2505663002/diff/1/third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp#newcode115 third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp:115: EXPECT_FALSE(isFeatureEnabledInFrame(kDefaultOffFeature, frame())); Hmm I would have expected this to ...
4 years, 1 month ago (2016-11-16 02:55:40 UTC) #8
iclelland
https://codereview.chromium.org/2505663002/diff/1/third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp File third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp (right): https://codereview.chromium.org/2505663002/diff/1/third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp#newcode115 third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp:115: EXPECT_FALSE(isFeatureEnabledInFrame(kDefaultOffFeature, frame())); On 2016/11/16 02:55:39, raymes wrote: > Hmm ...
4 years, 1 month ago (2016-11-16 04:41:04 UTC) #9
iclelland
https://codereview.chromium.org/2505663002/diff/1/third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp File third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp (right): https://codereview.chromium.org/2505663002/diff/1/third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp#newcode115 third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp:115: EXPECT_FALSE(isFeatureEnabledInFrame(kDefaultOffFeature, frame())); On 2016/11/16 04:41:04, iclelland wrote: > On ...
4 years, 1 month ago (2016-11-16 14:03:45 UTC) #10
raymes
lgtm besides some minor thoughts https://codereview.chromium.org/2505663002/diff/1/third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp File third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp (right): https://codereview.chromium.org/2505663002/diff/1/third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp#newcode115 third_party/WebKit/Source/core/frame/FeaturePolicyInFrameTest.cpp:115: EXPECT_FALSE(isFeatureEnabledInFrame(kDefaultOffFeature, frame())); On 2016/11/16 ...
4 years, 1 month ago (2016-11-16 23:10:15 UTC) #11
raymes
lgtm besides some minor thoughts
4 years, 1 month ago (2016-11-16 23:10:21 UTC) #12
raymes
On Thu, 17 Nov 2016 at 10:10 <raymes@chromium.org> wrote: > lgtm besides some minor thoughts ...
4 years, 1 month ago (2016-11-16 23:14:30 UTC) #13
raymes
On Thu, 17 Nov 2016 at 10:10 <raymes@chromium.org> wrote: > lgtm besides some minor thoughts ...
4 years, 1 month ago (2016-11-16 23:14:30 UTC) #14
iclelland
> I just noticed it got more complicated in https://codereview.chromium.org/2492623002 so it's probably ok :) ...
4 years, 1 month ago (2016-11-17 04:13:32 UTC) #15
Mike West
LGTM! Thank you. :)
4 years, 1 month ago (2016-11-17 14:35:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2505663002/20001
4 years, 1 month ago (2016-11-17 15:23:04 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/339625)
4 years, 1 month ago (2016-11-17 16:45:54 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2505663002/20001
4 years, 1 month ago (2016-11-17 20:13:26 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-17 22:25:32 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:27:04 UTC) #27
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f600666a8e1bf5f0227ace0f5a9c8ca75bb7eeab
Cr-Commit-Position: refs/heads/master@{#432991}

Powered by Google App Engine
This is Rietveld 408576698