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

Issue 2423853002: bluetooth: Add script to generate tests based on templates (Closed)

Created:
4 years, 2 months ago by ortuno
Modified:
4 years, 2 months ago
Reviewers:
Jeffrey Yasskin
CC:
blink-reviews, chromium-reviews, ortuno+watch_chromium.org, scheib+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Add script to generate tests based on templates The script generates a test for each template in script-tests/ The PRESUBMIT test makes sure that the generate.py script was run and that there are no obsolete tests. BUG=654670 Committed: https://crrev.com/e1fe7177116e72ef552b14da77e9fb47d2f47283 Cr-Commit-Position: refs/heads/master@{#426372}

Patch Set 1 #

Patch Set 2 : Clean up #

Total comments: 24

Patch Set 3 : Address jyasskin's comments #

Total comments: 2

Patch Set 4 : Remove replace loop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -86 lines) Patch
A third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/README View 1 1 chunk +16 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/generate.py View 1 2 3 1 chunk +147 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/generate_test.py View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/device-disconnects-before.html View 1 1 chunk +0 lines, -24 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getPrimaryService/gen-service-device-disconnects-before.html View 1 2 chunks +11 lines, -5 lines 0 comments Download
D third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/device-disconnects-before.html View 1 1 chunk +0 lines, -24 lines 0 comments Download
D third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/device-disconnects-before-with-uuid.html View 1 1 chunk +0 lines, -24 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-device-disconnects-before.html View 1 2 chunks +11 lines, -5 lines 0 comments Download
A + third_party/WebKit/LayoutTests/bluetooth/getPrimaryServices/gen-service-device-disconnects-before-with-uuid.html View 1 2 chunks +11 lines, -5 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/base_test_template.html View 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/script-tests/service-device-disconnects-before.js View 1 2 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
ortuno
jyasskin: PTAL
4 years, 2 months ago (2016-10-17 07:36:30 UTC) #6
Jeffrey Yasskin
https://codereview.chromium.org/2423853002/diff/20001/third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py File third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py (right): https://codereview.chromium.org/2423853002/diff/20001/third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py#newcode16 third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py:16: cmd = [input_api.python_executable, test_path] Does it work to do ...
4 years, 2 months ago (2016-10-19 01:39:24 UTC) #7
ortuno
https://codereview.chromium.org/2423853002/diff/20001/third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py File third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py (right): https://codereview.chromium.org/2423853002/diff/20001/third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py#newcode16 third_party/WebKit/LayoutTests/bluetooth/PRESUBMIT.py:16: cmd = [input_api.python_executable, test_path] On 2016/10/19 at 01:39:23, Jeffrey ...
4 years, 2 months ago (2016-10-19 04:34:04 UTC) #8
Jeffrey Yasskin
lgtm https://codereview.chromium.org/2423853002/diff/20001/third_party/WebKit/LayoutTests/bluetooth/generate.py File third_party/WebKit/LayoutTests/bluetooth/generate.py (right): https://codereview.chromium.org/2423853002/diff/20001/third_party/WebKit/LayoutTests/bluetooth/generate.py#newcode120 third_party/WebKit/LayoutTests/bluetooth/generate.py:120: def main(): On 2016/10/19 04:34:04, ortuno wrote: > ...
4 years, 2 months ago (2016-10-19 22:33:29 UTC) #13
ortuno
Thanks! https://codereview.chromium.org/2423853002/diff/20001/third_party/WebKit/LayoutTests/bluetooth/generate.py File third_party/WebKit/LayoutTests/bluetooth/generate.py (right): https://codereview.chromium.org/2423853002/diff/20001/third_party/WebKit/LayoutTests/bluetooth/generate.py#newcode120 third_party/WebKit/LayoutTests/bluetooth/generate.py:120: def main(): On 2016/10/19 at 22:33:29, Jeffrey Yasskin ...
4 years, 2 months ago (2016-10-20 00:27:04 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2423853002/60001
4 years, 2 months ago (2016-10-20 00:27:09 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-20 01:55:02 UTC) #19
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:14:28 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e1fe7177116e72ef552b14da77e9fb47d2f47283
Cr-Commit-Position: refs/heads/master@{#426372}

Powered by Google App Engine
This is Rietveld 408576698