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

Issue 10388192: Initial unit tests for the discovery API. (Closed)

Created:
8 years, 7 months ago by beaudoin
Modified:
8 years, 6 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Initial unit tests for the discovery API. Includes a slight change to the behavior of chrome.discovery.suggest, documentation updated. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139273

Patch Set 1 #

Total comments: 2

Patch Set 2 : Synced #

Patch Set 3 : Synced #

Patch Set 4 : sync #

Patch Set 5 : Using JSON schema compiler structs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -18 lines) Patch
M chrome/browser/extensions/api/README.txt View 5 chunks +21 lines, -15 lines 0 comments Download
A chrome/browser/extensions/api/discovery/discovery_api_unittest.cc View 1 2 3 4 1 chunk +205 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/discovery/suggested_links_registry.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/discovery/suggested_links_registry.cc View 3 chunks +14 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
beaudoin
Friendly ping! :)
8 years, 7 months ago (2012-05-23 23:05:06 UTC) #1
Aaron Boodman
lgtm http://codereview.chromium.org/10388192/diff/1/chrome/browser/extensions/api/discovery/discovery_api_unittest.cc File chrome/browser/extensions/api/discovery/discovery_api_unittest.cc (right): http://codereview.chromium.org/10388192/diff/1/chrome/browser/extensions/api/discovery/discovery_api_unittest.cc#newcode87 chrome/browser/extensions/api/discovery/discovery_api_unittest.cc:87: "[{\"linkUrl\": \"https://amazon.com/\", \"linkText\": \"Amazon\"}]"); The JSON schema compiler-generated ...
8 years, 6 months ago (2012-05-28 18:32:12 UTC) #2
beaudoin
I did not find any method that automatically generate JSON from the API function parameters, ...
8 years, 6 months ago (2012-05-28 22:46:34 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/10388192/5003
8 years, 6 months ago (2012-05-28 22:46:45 UTC) #4
commit-bot: I haz the power
Change committed as 139273
8 years, 6 months ago (2012-05-29 00:27:41 UTC) #5
Aaron Boodman
Oh, it looks like we don't generate params.ToValue(), we only do it for structs. Looks ...
8 years, 6 months ago (2012-05-29 01:00:05 UTC) #6
beaudoin1
I will add them with my next pass at the extension. One question though: are ...
8 years, 6 months ago (2012-05-29 15:16:17 UTC) #7
Aaron Boodman
On Tue, May 29, 2012 at 8:16 AM, Philippe Beaudoin <beaudoin@google.com> wrote: > I will ...
8 years, 6 months ago (2012-05-29 20:40:19 UTC) #8
beaudoin1
Interesting idea, some kind of generated api-specific testutil. I wonder if struct's ToValue is relied ...
8 years, 6 months ago (2012-05-29 23:03:56 UTC) #9
Aaron Boodman
8 years, 6 months ago (2012-05-30 18:17:48 UTC) #10
On Tue, May 29, 2012 at 1:39 PM, Aaron Boodman <aa@chromium.org> wrote:
> And as far as I know, there is no compile-time symbol for test code.
> And I don't see how one could work with the component build anyway.

I found out today that there is a UNIT_TEST macro...

- a

Powered by Google App Engine
This is Rietveld 408576698