-
Notifications
You must be signed in to change notification settings - Fork 873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decouple AdsServiceImpl full screen mode business logic #8265
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mobile was always fullscreen, so I assume this changes no logic there?
That is correct, so mobile will work as before |
|
||
// Assert | ||
FullScreenModeFrequencyCap frequency_cap; | ||
const bool is_allowed = frequency_cap.ShouldAllow(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: in other frequency cap tests we have ShouldAllow()
under // Act
(and MockFullScreenMode(..)
would be under // Arrange
respectively
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for all cases in this test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -58,6 +59,11 @@ bool FrequencyCapping::IsAdAllowed() { | |||
return false; | |||
} | |||
|
|||
FullScreenModeFrequencyCap full_screen_node_frequency_cap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should be full_screen_mode_frequency_cap
? ("m" instead of "n")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1e29655
to
8c3d3f7
Compare
CI failed due to known browser tests and audit deps |
Resolves brave/brave-browser#14762
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
Confirm ads are not shown when the browser is in full-screen mode (this mode is not the same as maximized windows)