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

Issue 779083002: Move system.display tests to extensions/ (Closed)

Created:
6 years ago by tmpsantos
Modified:
6 years ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move system.display tests to extensions/ Also copy a few helper functions from extension_function_test_utils.h to api_test_utils.h so we don't need to depend on chrome/. These helper functions are needed by tests other than the display test and will help with the migration. BUG=392842 Committed: https://crrev.com/5c855a28156ed8f4d3f191ea7a1f9ee3dc777ee7 Cr-Commit-Position: refs/heads/master@{#309514}

Patch Set 1 : #

Patch Set 2 : Removed ash dependency #

Total comments: 5

Patch Set 3 : Less duplicated code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -505 lines) Patch
D chrome/browser/extensions/api/system_display/system_display_apitest.cc View 1 chunk +0 lines, -298 lines 0 comments Download
M chrome/browser/extensions/extension_function_test_utils.cc View 1 2 2 chunks +10 lines, -33 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D chrome/test/data/extensions/api_test/system/display/manifest.json View 1 chunk +0 lines, -11 lines 0 comments Download
D chrome/test/data/extensions/api_test/system/display/test_display_api.js View 1 chunk +0 lines, -53 lines 0 comments Download
A + extensions/browser/api/system_display/system_display_apitest.cc View 1 8 chunks +61 lines, -108 lines 0 comments Download
M extensions/browser/api_test_utils.h View 1 2 4 chunks +26 lines, -1 line 0 comments Download
M extensions/browser/api_test_utils.cc View 1 2 2 chunks +52 lines, -0 lines 0 comments Download
M extensions/shell/app_shell.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A + extensions/test/data/system/display/manifest.json View 0 chunks +-1 lines, --1 lines 0 comments Download
A + extensions/test/data/system/display/test_display_api.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (7 generated)
tmpsantos
6 years ago (2014-12-05 15:40:56 UTC) #3
tmpsantos
hongbo.min@intel.com: Please review changes in
6 years ago (2014-12-05 15:41:41 UTC) #5
tmpsantos
Please review. app_shell_browsertests will now depend on ash/. I made a new DEPS file very ...
6 years ago (2014-12-05 15:43:23 UTC) #6
James Cook
No. Do not add dependencies on ash/ in extensions/, even for tests. There must be ...
6 years ago (2014-12-05 16:44:16 UTC) #7
tmpsantos
On 2014/12/05 16:44:16, James Cook wrote: > No. Do not add dependencies on ash/ in ...
6 years ago (2014-12-18 16:22:49 UTC) #8
James Cook
LGTM but please try to reduce the code duplication with extension_function_test_utils.cc Thanks for taking care ...
6 years ago (2014-12-19 18:07:03 UTC) #11
Lei Zhang
chrome/ lgtm
6 years ago (2014-12-19 21:19:39 UTC) #12
Yoyo Zhou
LGTM with James's comments addressed
6 years ago (2014-12-19 22:07:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/779083002/100001
6 years ago (2014-12-23 01:49:16 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:100001)
6 years ago (2014-12-23 02:01:18 UTC) #17
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/5c855a28156ed8f4d3f191ea7a1f9ee3dc777ee7 Cr-Commit-Position: refs/heads/master@{#309514}
6 years ago (2014-12-23 02:02:12 UTC) #18
tmpsantos
6 years ago (2014-12-23 02:09:38 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/779083002/diff/60001/extensions/browser/api_t...
File extensions/browser/api_test_utils.cc (right):

https://codereview.chromium.org/779083002/diff/60001/extensions/browser/api_t...
extensions/browser/api_test_utils.cc:81: scoped_refptr<extensions::Extension>
CreateExtension(
On 2014/12/19 18:07:03, James Cook (OOO until Jan 5) wrote:
> Can you move this out of the anonymous namespace and make the code in
> chrome/browser/extensions/extension_function_utils.cc call this version? Then
> there will be less duplicated code.

Acknowledged.

https://codereview.chromium.org/779083002/diff/60001/extensions/browser/api_t...
extensions/browser/api_test_utils.cc:103: base::DictionaryValue*
ParseDictionary(const std::string& data) {
On 2014/12/19 18:07:03, James Cook (OOO until Jan 5) wrote:
> Likewise, can the extension_function_utils.cc versions just call these
versions?
> 
> That's a strong signal to engineers touching //chrome that they really ought
to
> use these versions.

Acknowledged.

Powered by Google App Engine
This is Rietveld 408576698