New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 791115 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jun 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Remove the friend class of the test in OfflinePageModelTaskified

Project Member Reported by romax@chromium.org, Dec 1 2017

Issue description

Currently the OPMTaskifiedTest class is a friend of the OPMTaskified, we should probably remove it and expose those methods used in test by public APIs, then make corresponding changes to the tests.
 
Owner: romax@chromium.org
Status: Assigned (was: Available)

Comment 2 by romax@chromium.org, May 30 2018

I'm not sure if this has to be done, since in the code base there are instances that friend class is used for writing unit tests. Also it's mentioned in the C++ style guide: https://google.github.io/styleguide/cppguide.html#Friends

Comment 3 by romax@chromium.org, May 30 2018

Personally I would prefer not to remove the friend class (it was a request mentioned in a CL comment)

Comment 4 by romax@chromium.org, Jun 1 2018

Status: WontFix (was: Assigned)
And according to the code search, we're using friend for writing unit tests.
https://cs.chromium.org/search/?q=friend+file:%5Esrc/components/offline_pages/+package:%5Echromium$&type=cs

I'm marking this bug as won't fix, and remove the TODO label in the code.

Sign in to add a comment