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

Issue 23874006: Add a function to send scripts from a browsertest to an extension's background page. (Closed)

Created:
7 years, 3 months ago by Jeffrey Yasskin
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Add a function to send scripts from a browsertest to an extension's background page. This lets browsertests and apitests use more obvious code in some cases, especially when they need to alternate between the background page and the test running code. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221216

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rename file, add namespace, add thin wrapper to ExtensionBrowserTest #

Patch Set 3 : Add browsertest_util.cc to other binaries to fix link errors #

Total comments: 2

Patch Set 4 : Test that sending a non-string fails the test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -50 lines) Patch
M chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc View 1 2 chunks +52 lines, -50 lines 0 comments Download
A chrome/browser/extensions/browsertest_util.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/extensions/browsertest_util.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/extensions/browsertest_util_browsertest.cc View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Jeffrey Yasskin
I'm also using this at https://codereview.chromium.org/19045002/diff/5001/chrome/browser/extensions/api/declarative_content/declarative_content_apitest.cc#newcode165 to run extension code after manipulating the set of ...
7 years, 3 months ago (2013-09-03 23:01:39 UTC) #1
not at google - send to devlin
despite my comment, reading this I think this utility should go on extension_browsertest.cc. There are ...
7 years, 3 months ago (2013-09-03 23:13:38 UTC) #2
not at google - send to devlin
lgtm either way
7 years, 3 months ago (2013-09-03 23:14:39 UTC) #3
Jeffrey Yasskin
On 2013/09/03 23:13:38, kalman wrote: > despite my comment, reading this I think this utility ...
7 years, 3 months ago (2013-09-03 23:33:13 UTC) #4
not at google - send to devlin
still lgtm
7 years, 3 months ago (2013-09-04 02:12:50 UTC) #5
not at google - send to devlin
lgtm https://chromiumcodereview.appspot.com/23874006/diff/14001/chrome/browser/extensions/browsertest_util.h File chrome/browser/extensions/browsertest_util.h (right): https://chromiumcodereview.appspot.com/23874006/diff/14001/chrome/browser/extensions/browsertest_util.h#newcode18 chrome/browser/extensions/browsertest_util.h:18: // have a background page, or if executing ...
7 years, 3 months ago (2013-09-04 02:15:16 UTC) #6
Jeffrey Yasskin
https://chromiumcodereview.appspot.com/23874006/diff/14001/chrome/browser/extensions/browsertest_util.h File chrome/browser/extensions/browsertest_util.h (right): https://chromiumcodereview.appspot.com/23874006/diff/14001/chrome/browser/extensions/browsertest_util.h#newcode18 chrome/browser/extensions/browsertest_util.h:18: // have a background page, or if executing the ...
7 years, 3 months ago (2013-09-04 02:48:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/23874006/30001
7 years, 3 months ago (2013-09-04 02:48:50 UTC) #8
commit-bot: I haz the power
7 years, 3 months ago (2013-09-04 17:18:35 UTC) #9
Message was sent while issue was closed.
Change committed as 221216

Powered by Google App Engine
This is Rietveld 408576698