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

Issue 562273006: Move the last extensions/common unit tests to extensions_unittests (Closed)

Created:
6 years, 3 months ago by James Cook
Modified:
6 years, 3 months ago
Reviewers:
tfarina, Yoyo Zhou
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, jshin+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@manifest2
Project:
chromium
Visibility:
Public.

Description

Move the last extensions/common unit tests to extensions_unittests They don't need to run in Chrome's unit_tests suite any more. * Move ExtensionL10UtilTest * Move FileUtilTest * Keep browser action and page action tests in Chrome, since those are Chrome-specific concepts This CL depends on https://codereview.chromium.org/565423003/ for cleanup of _manifest_features.json BUG=397165 TEST=extensions_unittests, unit_tests Committed: https://crrev.com/f765cb48310ab9d5dcaba7ec118115a32dd7c964 Cr-Commit-Position: refs/heads/master@{#295605}

Patch Set 1 #

Patch Set 2 : (file-tests) delete eeeeeee #

Patch Set 3 : (file-tests) rebase #

Total comments: 4

Patch Set 4 : (file-tests) rebase #

Patch Set 5 : (file-test) landed empty icon data separately #

Patch Set 6 : (file-tests) review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -180 lines) Patch
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/common/extensions/extension_file_util_unittest.cc View 1 2 3 4 5 2 chunks +32 lines, -0 lines 0 comments Download
M chrome/common/extensions/manifest_handlers/content_scripts_manifest_unittest.cc View 2 chunks +21 lines, -0 lines 0 comments Download
D chrome/test/data/extensions/bad/Extensions/dddddddddddddddddddddddddddddddd/1.0/git_hates_empty_dirs View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/extensions/bad/Extensions/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/1.0/manifest.json View 1 1 chunk +0 lines, -9 lines 0 comments Download
D chrome/test/data/extensions/bad/Extensions/ffffffffffffffffffffffffffffffff/icon.png View Binary file 0 comments Download
D chrome/test/data/extensions/bad/Extensions/ffffffffffffffffffffffffffffffff/manifest.json View 1 chunk +0 lines, -8 lines 0 comments Download
M extensions/BUILD.gn View 3 chunks +2 lines, -6 lines 0 comments Download
M extensions/common/extension_l10n_util_unittest.cc View 6 chunks +14 lines, -22 lines 1 comment Download
M extensions/common/file_util_unittest.cc View 7 chunks +15 lines, -72 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 3 chunks +2 lines, -6 lines 0 comments Download
A + extensions/test/data/extension_with_locales/_locales/en/messages.json View 0 chunks +-1 lines, --1 lines 0 comments Download
A + extensions/test/data/extension_with_locales/_locales/en_US/messages.json View 0 chunks +-1 lines, --1 lines 0 comments Download
A + extensions/test/data/extension_with_locales/_locales/sr/messages.json View 0 chunks +-1 lines, --1 lines 0 comments Download
A extensions/test/data/extension_with_locales/manifest.json View 1 chunk +7 lines, -0 lines 0 comments Download
A extensions/test/data/extension_without_locales/manifest.json View 1 chunk +6 lines, -0 lines 0 comments Download
A extensions/test/data/file_util/bad_manifest/manifest.json View 1 chunk +4 lines, -0 lines 0 comments Download
A extensions/test/data/file_util/missing_manifest/README View 1 chunk +1 line, -0 lines 0 comments Download
D extensions/test/test_permissions_provider.h View 1 chunk +0 lines, -28 lines 0 comments Download
D extensions/test/test_permissions_provider.cc View 1 chunk +0 lines, -27 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
James Cook
yoz, PTAL
6 years, 3 months ago (2014-09-17 22:15:28 UTC) #2
Yoyo Zhou
LGTM https://codereview.chromium.org/562273006/diff/40001/chrome/common/extensions/extension_file_util_unittest.cc File chrome/common/extensions/extension_file_util_unittest.cc (right): https://codereview.chromium.org/562273006/diff/40001/chrome/common/extensions/extension_file_util_unittest.cc#newcode56 chrome/common/extensions/extension_file_util_unittest.cc:56: EXPECT_TRUE(extension2.get() == NULL); nit: this is just EXPECT_FALSE(extension2.get()) ...
6 years, 3 months ago (2014-09-18 21:08:26 UTC) #3
James Cook
https://codereview.chromium.org/562273006/diff/40001/chrome/common/extensions/extension_file_util_unittest.cc File chrome/common/extensions/extension_file_util_unittest.cc (right): https://codereview.chromium.org/562273006/diff/40001/chrome/common/extensions/extension_file_util_unittest.cc#newcode56 chrome/common/extensions/extension_file_util_unittest.cc:56: EXPECT_TRUE(extension2.get() == NULL); On 2014/09/18 21:08:26, Yoyo Zhou wrote: ...
6 years, 3 months ago (2014-09-18 22:02:18 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/562273006/100001
6 years, 3 months ago (2014-09-18 22:06:03 UTC) #6
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 08dd8a70825a9f37238ca57f4fd30aaac1812516
6 years, 3 months ago (2014-09-18 23:44:06 UTC) #7
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/f765cb48310ab9d5dcaba7ec118115a32dd7c964 Cr-Commit-Position: refs/heads/master@{#295605}
6 years, 3 months ago (2014-09-18 23:44:39 UTC) #8
tfarina
Looks like you ended up doing something different than what I was thinking in doing. ...
6 years, 3 months ago (2014-09-19 17:00:30 UTC) #10
James Cook
6 years, 3 months ago (2014-09-19 17:34:44 UTC) #11
Message was sent while issue was closed.
On 2014/09/19 17:00:30, tfarina wrote:
> Looks like you ended up doing something different than what I was thinking in
> doing.
> 
>
https://codereview.chromium.org/562273006/diff/100001/extensions/common/exten...
> File extensions/common/extension_l10n_util_unittest.cc (right):
> 
>
https://codereview.chromium.org/562273006/diff/100001/extensions/common/exten...
> extensions/common/extension_l10n_util_unittest.cc:112:
> install_dir.AppendASCII("extension_with_locales").Append(kLocaleFolder);
> Ah, you simplified it. Cool.
> 
> Thanks!

Yeah. The earlier patch was actually the more difficult one -- the hardest part
was figuring out all the _manifest_features.json entries that were missing. 
Just moving the data wasn't enough.

Thanks again for your work on extensions_unittests.  We've moved about 10% of
Chrome's unit tests to the suite (it's at ~600 tests, Chrome's unit_tests is
~6000).

Powered by Google App Engine
This is Rietveld 408576698