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

Issue 789470 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 3
Type: Feature

Blocking:
issue 740783



Sign in to add a comment

desktop-pwas: Investigate reducing code duplication in BookmarkAppNavigationThrottleExperimentalBrowserTest

Project Member Reported by ortuno@chromium.org, Nov 29 2017

Issue description

BookmarkAppNavigationThrottleBrowserTests has many methods that follow the same pattern:

1. Get current state of browser windows and tabs
2. Perform an action
3. Check that the new state matches the expected state.

Step 1. is very similar on all these methods and could possibly be abstracted.
 
BookmarkAppNavigationThrottleBrowserTests doesn't seem to exist, do you know if it's been renamed?

Comment 2 by ortuno@chromium.org, Jun 20 2018

Yup. It got split to support running tests with link capturing enabled and disabled. All the tests are in:

https://cs.chromium.org/chromium/src/chrome/browser/extensions/bookmark_app_navigation_throttle_browsertest.cc
I refactored this class into https://cs.chromium.org/chromium/src/chrome/browser/extensions/bookmark_app_navigation_browsertest.h?q=chrome/browser/extensions/bookmark_app_navigation_browsertest.h&sq=package:chromium&dr. I think the reducing duplication is still available though since I just pulled out common code to reuse the test helper elsewhere.
Summary: desktop-pwas: Investigate reducing code duplication in BookmarkAppNavigationThrottleExperimentalBrowserTest (was: desktop-pwas: Investigate reducing code duplication in BookmarkAppNavigationThrottleBrowserTests)

Sign in to add a comment