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

Issue 2178853006: bluetooth: fuzzer: Add a connect and getPrimaryServices tokens (Closed)

Created:
4 years, 4 months ago by ortuno
Modified:
4 years, 4 months ago
Reviewers:
scheib
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, haraken, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, ortuno+watch_chromium.org, Peter Beverloo, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bluetooth-fuzzer-fake-adapter-uuid
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: fuzzer: Add a connect and getPrimaryServices tokens * Adds the catch token. This increases the likelihood of generating valid test cases since the test cases will no longer immediately fail. * Adds connect and getPrimaryServices tokens. * Introduce the concept of "base" tokens. After adding the connect and getPrimaryServices tokens the chances of generating valid test cases decreased dramatically (0.29% of producing a test case which tried to retrieve services). Base tokens increase the likelihood of generating valid test cases by starting a test with a known valid sequence of operations. * Also changes fakes to default to connection error. Otherwise they would just drop connect calls causing crashes. BUG=570049 Committed: https://crrev.com/d0b52049f302ec50cf7f53b77bca193948d7b735 Cr-Commit-Position: refs/heads/master@{#408034}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Format #

Messages

Total messages: 18 (12 generated)
ortuno
scheib: PTAL
4 years, 4 months ago (2016-07-25 21:52:54 UTC) #4
scheib
LGTM, with suggestion: https://codereview.chromium.org/2178853006/diff/1/third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/constraints.py File third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/constraints.py (right): https://codereview.chromium.org/2178853006/diff/1/third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/constraints.py#newcode26 third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/constraints.py:26: # Strings that are used at ...
4 years, 4 months ago (2016-07-26 19:04:44 UTC) #6
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/2178853006/20001
4 years, 4 months ago (2016-07-27 02:27:43 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-27 03:29:12 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/d0b52049f302ec50cf7f53b77bca193948d7b735 Cr-Commit-Position: refs/heads/master@{#408034}
4 years, 4 months ago (2016-07-27 03:32:53 UTC) #17
ortuno
4 years, 4 months ago (2016-07-28 22:26:22 UTC) #18
Message was sent while issue was closed.
Oops. Just realized that I submitting before sending drafts.

https://codereview.chromium.org/2178853006/diff/1/third_party/WebKit/Source/m...
File
third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/constraints.py
(right):

https://codereview.chromium.org/2178853006/diff/1/third_party/WebKit/Source/m...
third_party/WebKit/Source/modules/bluetooth/testing/clusterfuzz/constraints.py:26:
# Strings that are used at the beginning of a test.
On 2016/07/26 at 19:04:44, scheib wrote:
> Comment that these are going to have parameters filled in below, so they have
arguments.
> As discussed, 'print' and optionally named parameters may make this code more
readable & reduce errors (parameters must match intention).
> 
> print ("setBluetoothFakeAdapter(%(FAKENAME)s) {}" % { 'FAKENAME':'frobber'})

I added names to the parameters but I kept format given the warning on %'s
documentation[1]:

"The formatting operations described here are obsolete and may go away in future
versions of Python. Use the new String Formatting in new code."

[1]
https://docs.python.org/release/3.1.5/library/stdtypes.html#old-string-format...

Powered by Google App Engine
This is Rietveld 408576698