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

Issue 416423006: Add a browser test for functions in notification provider API (Closed)

Created:
6 years, 4 months ago by liyanhou
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Add a browser test for functions in notification provider API Add a basic browser test for functions in notification provider API. This is mainly to test the connection and provide a skeleton for future tests. The functions are not fully implemented yet, and more tests will be added as the functions are implemented. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287692 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287972

Patch Set 1 #

Total comments: 10

Patch Set 2 : addressed comments #

Total comments: 1

Patch Set 3 : bug fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -11 lines) Patch
M chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc View 1 2 3 chunks +45 lines, -9 lines 0 comments Download
A chrome/test/data/extensions/api_test/notification_provider/basic_usage/background.js View 1 chunk +112 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/notification_provider/basic_usage/manifest.json View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
liyanhou
Could you take a look at this? Thank you so much!
6 years, 4 months ago (2014-08-04 17:56:33 UTC) #1
Pete Williamson
https://codereview.chromium.org/416423006/diff/1/chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc File chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc (right): https://codereview.chromium.org/416423006/diff/1/chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc#newcode15 chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc:15: void CreateNotificationOptionsForTest( Great job refactoring this! This is exactly ...
6 years, 4 months ago (2014-08-04 20:30:46 UTC) #2
liyanhou
Could you take another look at this? Thank you so much! https://codereview.chromium.org/416423006/diff/1/chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc File chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc (right): ...
6 years, 4 months ago (2014-08-04 23:24:16 UTC) #3
Pete Williamson
LGTM. You're right, it looks like we do not need to free what LoadExtension returns.
6 years, 4 months ago (2014-08-05 00:46:42 UTC) #4
liyanhou
kalman@ Could you take a look at the notification_provider_apitest.cc file? Thank you so much!
6 years, 4 months ago (2014-08-05 17:35:13 UTC) #5
not at google - send to devlin
lgtm
6 years, 4 months ago (2014-08-05 18:12:27 UTC) #6
liyanhou
The CQ bit was checked by liyanhou@chromium.org
6 years, 4 months ago (2014-08-05 18:50:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/liyanhou@chromium.org/416423006/20001
6 years, 4 months ago (2014-08-05 18:51:11 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-05 22:23:46 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-05 23:26:13 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/1396)
6 years, 4 months ago (2014-08-05 23:26:14 UTC) #11
dewittj
The CQ bit was checked by dewittj@chromium.org
6 years, 4 months ago (2014-08-05 23:34:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/liyanhou@chromium.org/416423006/20001
6 years, 4 months ago (2014-08-05 23:36:36 UTC) #13
commit-bot: I haz the power
Change committed as 287692
6 years, 4 months ago (2014-08-06 05:57:35 UTC) #14
Adam Rice
Reverted as 287722. Leaks memory. See http://build.chromium.org/p/chromium.memory/builders/Linux%20ASan%20LSan%20Tests%20%281%29/builds/4658 https://codereview.chromium.org/416423006/diff/20001/chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc File chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc (right): https://codereview.chromium.org/416423006/diff/20001/chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc#newcode77 chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc:77: extension->id(), sender_id1, ...
6 years, 4 months ago (2014-08-06 07:11:49 UTC) #15
liyanhou
The CQ bit was checked by liyanhou@chromium.org
6 years, 4 months ago (2014-08-07 04:19:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/liyanhou@chromium.org/416423006/40001
6 years, 4 months ago (2014-08-07 04:20:18 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-07 05:08:24 UTC) #18
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 06:58:41 UTC) #19
Message was sent while issue was closed.
Change committed as 287972

Powered by Google App Engine
This is Rietveld 408576698