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

Issue 11412238: Proof of concept for running extension API stack through dev tools. (Closed)

Created:
8 years ago by zel
Modified:
7 years, 3 months ago
Reviewers:
rkc, craigdh, achuithb, dtu, tonyg
CC:
chromium-reviews, chrome-speed-team+watch_google.com, Aaron Boodman, telemetry+watch_chromium.org, pam+watch_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Proof of concept for running extension API stack through dev tools. To play with it, start test scripts as: ./tools/telemetry/examples/telemetry_extension_test.py --browser=release --load-component-extension=<path_to>/tools/telemetry_auto/data/auto_provider ./tools/telemetry_auto/examples/login_test.py --browser=release --load-component-extension=<path_to>/tools/telemetry_auto/data/auto_provider --extra-browser-args="--login-manager --stub-cros --login-profile=user --user-data-dir=/tmp/test_profile --no-first-run" BUG=162730 TEST=none

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : added testAutomationExtension to browser_unittest.py #

Patch Set 11 : #

Total comments: 14

Patch Set 12 : rebase from hell #

Patch Set 13 : review fixes #

Patch Set 14 : added filtering for unsuported browsers based on extension support #

Patch Set 15 : #

Patch Set 16 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+612 lines, -75 lines) Patch
A + chrome/test/telemetry_auto/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 0 chunks +-1 lines, --1 lines 0 comments Download
A tools/telemetry/examples/telemetry_extension_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +41 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/android_browser_backend.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/android_browser_finder.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/browser.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +10 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/browser_backend.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +96 lines, -33 lines 0 comments Download
M tools/telemetry/telemetry/browser_finder.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/browser_options.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +24 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/browser_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +34 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/cros_browser_backend.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +10 lines, -25 lines 0 comments Download
M tools/telemetry/telemetry/cros_browser_finder.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/desktop_browser_backend.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +14 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/desktop_browser_finder.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
A tools/telemetry/telemetry/extension_page.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +108 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/possible_browser.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -1 line 0 comments Download
A + tools/telemetry/unittest_data/auto_provider/background.js View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
A + tools/telemetry/unittest_data/auto_provider/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -4 lines 0 comments Download
A + tools/telemetry_auto/data/auto_provider/background.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
A + tools/telemetry_auto/data/auto_provider/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -4 lines 0 comments Download
A tools/telemetry_auto/examples/login_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +76 lines, -0 lines 0 comments Download
A + tools/telemetry_auto/telemetry_auto/__init__.py View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
A tools/telemetry_auto/telemetry_auto/oobe_page.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +97 lines, -0 lines 0 comments Download
A tools/telemetry_auto/telemetry_auto/webui_page.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +77 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
nduca
Super cool. Left you a ton of random observations, happy to chat tomorrow if you ...
8 years ago (2012-11-29 05:09:27 UTC) #1
zel
https://codereview.chromium.org/11412238/diff/2001/tools/telemetry/examples/telemetry_extension_test.py File tools/telemetry/examples/telemetry_extension_test.py (right): https://codereview.chromium.org/11412238/diff/2001/tools/telemetry/examples/telemetry_extension_test.py#newcode18 tools/telemetry/examples/telemetry_extension_test.py:18: browser_to_create = telemetry.FindBrowser(options) On 2012/11/29 05:09:27, nduca wrote: > ...
8 years ago (2012-11-29 22:58:44 UTC) #2
zel
8 years ago (2012-11-29 23:06:48 UTC) #3
nduca
Haven't had a chance to look at your latest patchset lately, but it'd be good ...
8 years ago (2012-11-30 07:31:43 UTC) #4
nduca
https://codereview.chromium.org/11412238/diff/9002/tools/telemetry/telemetry/extension_page.py File tools/telemetry/telemetry/extension_page.py (right): https://codereview.chromium.org/11412238/diff/9002/tools/telemetry/telemetry/extension_page.py#newcode71 tools/telemetry/telemetry/extension_page.py:71: def RunMethod(self, method_name, *parameters): Might try callling this ChromeExtensionsAPI, ...
8 years ago (2012-11-30 08:16:25 UTC) #5
zel
also moved all files around per nduca's instructions https://codereview.chromium.org/11412238/diff/2001/tools/telemetry/telemetry/browser_backend.py File tools/telemetry/telemetry/browser_backend.py (right): https://codereview.chromium.org/11412238/diff/2001/tools/telemetry/telemetry/browser_backend.py#newcode116 tools/telemetry/telemetry/browser_backend.py:116: return ...
8 years ago (2012-12-04 03:12:48 UTC) #6
zel
* added "--load-automation-extension" switch to browser_options * added file push for automation component extension on ...
8 years ago (2012-12-06 19:21:55 UTC) #7
zel
* added new unit test - testAutomationExtension - to browser_unittest.py
8 years ago (2012-12-06 22:47:59 UTC) #8
nduca
so firefox doesn't have an automation extension. again, telemetry api is not supposed to let ...
8 years ago (2012-12-07 00:59:18 UTC) #9
zel
Replaced "--load-automation-extension" switch with more generic "--load-extension" and "--load-component-extension" per Nat's suggestion.
8 years ago (2012-12-07 03:23:42 UTC) #10
nduca
You probably need to make android backend explode in its constructor if it has any ...
8 years ago (2012-12-07 19:23:47 UTC) #11
zel
https://codereview.chromium.org/11412238/diff/23001/tools/telemetry/examples/telemetry_extension_test.py File tools/telemetry/examples/telemetry_extension_test.py (right): https://codereview.chromium.org/11412238/diff/23001/tools/telemetry/examples/telemetry_extension_test.py#newcode14 tools/telemetry/examples/telemetry_extension_test.py:14: parser = options.CreateParser('telemetry_extension_test.py') On 2012/12/07 19:23:47, nduca wrote: > ...
8 years ago (2012-12-12 21:03:41 UTC) #12
zel
few more things: - made android and content_shell backend explode in its constructor if it ...
8 years ago (2012-12-13 02:44:45 UTC) #13
nduca
Hey Zel, just getting back from holidays. This is looking really solid. In particular, extensions ...
7 years, 11 months ago (2013-01-05 06:29:11 UTC) #14
zel
7 years, 11 months ago (2013-01-11 23:03:21 UTC) #15
On 2013/01/05 06:29:11, nduca wrote:
> Hey Zel, just getting back from holidays. This is looking really solid. In
> particular, extensions support, and the basic creation of telemetry_auto are
> starting to look almost landable. I think there's more we want to iterate on,
> around tabs etc.
> 
> What do you think about breaking out at least
> - patch to create telemetry_auto folder
> - pure patch to add support for extensions to telemetry [with nobody but tests
> that use them]
> 
> I'm thinking that'll give us some smaller patches that I can review more
quickly
> etc....

achuith@ is taking over this work since I am swamped with other work items. He
will do the split as you suggested.

Powered by Google App Engine
This is Rietveld 408576698