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

Issue 334083002: Add a test helper class for ExtensionRegistry. (Closed)

Created:
6 years, 6 months ago by limasdf
Modified:
6 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add a test helper class for ExtensionRegistry. And use it from c/e/b/extensions/. BUG=354046 R=yoz@chromium.org, thestig@chromium.org, kalman@chromium.org TEST=browser_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280415

Patch Set 1 #

Total comments: 10

Patch Set 2 : Ben's comments #

Total comments: 8

Patch Set 3 : Y and B comments. 2014 brazil world cup morning at 6AM korea vs russia #

Total comments: 8

Patch Set 4 : pass extension id #

Total comments: 4

Patch Set 5 : yoyo #

Total comments: 6

Patch Set 6 : lei #

Patch Set 7 : remove failed test to fix later #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -12 lines) Patch
M chrome/browser/extensions/api/content_settings/content_settings_apitest.cc View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/preference/preference_apitest.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_storage_monitor_browsertest.cc View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A extensions/browser/test_extension_registry_observer.h View 1 2 3 4 5 1 chunk +60 lines, -0 lines 0 comments Download
A extensions/browser/test_extension_registry_observer.cc View 1 2 3 4 5 1 chunk +103 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
limasdf
https://codereview.chromium.org/334083002/diff/1/extensions/DEPS File extensions/DEPS (right): https://codereview.chromium.org/334083002/diff/1/extensions/DEPS#newcode4 extensions/DEPS:4: ################################# I'm not sure if this is allowed. Could ...
6 years, 6 months ago (2014-06-15 13:36:54 UTC) #1
not at google - send to devlin
Great idea. https://codereview.chromium.org/334083002/diff/1/extensions/DEPS File extensions/DEPS (right): https://codereview.chromium.org/334083002/diff/1/extensions/DEPS#newcode4 extensions/DEPS:4: ################################# On 2014/06/15 13:36:54, limasdf wrote: > ...
6 years, 6 months ago (2014-06-15 21:20:17 UTC) #2
limasdf
Addressed ben's comment. Still waiting for +rockot, yoz 's review (doesn't mean pushing you :) ...
6 years, 6 months ago (2014-06-16 18:58:54 UTC) #3
not at google - send to devlin
https://codereview.chromium.org/334083002/diff/20001/extensions/browser/extension_test_registry_observer.cc File extensions/browser/extension_test_registry_observer.cc (right): https://codereview.chromium.org/334083002/diff/20001/extensions/browser/extension_test_registry_observer.cc#newcode35 extensions/browser/extension_test_registry_observer.cc:35: scoped_refptr<content::MessageLoopRunner> runner_; Doesn't look like this is ever initialized? ...
6 years, 6 months ago (2014-06-16 21:42:08 UTC) #4
Yoyo Zhou
https://chromiumcodereview.appspot.com/334083002/diff/20001/extensions/browser/extension_test_registry_observer.h File extensions/browser/extension_test_registry_observer.h (right): https://chromiumcodereview.appspot.com/334083002/diff/20001/extensions/browser/extension_test_registry_observer.h#newcode16 extensions/browser/extension_test_registry_observer.h:16: class ExtensionTestRegistryObserver : public ExtensionRegistryObserver { nit: TestExtensionRegistryObserver? https://chromiumcodereview.appspot.com/334083002/diff/20001/extensions/browser/extension_test_registry_observer.h#newcode21 ...
6 years, 6 months ago (2014-06-17 02:29:54 UTC) #5
limasdf
Could you? https://codereview.chromium.org/334083002/diff/20001/extensions/browser/extension_test_registry_observer.cc File extensions/browser/extension_test_registry_observer.cc (right): https://codereview.chromium.org/334083002/diff/20001/extensions/browser/extension_test_registry_observer.cc#newcode35 extensions/browser/extension_test_registry_observer.cc:35: scoped_refptr<content::MessageLoopRunner> runner_; On 2014/06/16 21:42:08, kalman wrote: ...
6 years, 6 months ago (2014-06-17 17:20:56 UTC) #6
Yoyo Zhou
https://chromiumcodereview.appspot.com/334083002/diff/60001/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc File chrome/browser/extensions/api/content_settings/content_settings_apitest.cc (right): https://chromiumcodereview.appspot.com/334083002/diff/60001/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc#newcode203 chrome/browser/extensions/api/content_settings/content_settings_apitest.cc:203: LOG(INFO) << "uninstallid:" + last_loaded_extension_id(); Please remove these log ...
6 years, 6 months ago (2014-06-17 18:15:38 UTC) #7
not at google - send to devlin
Some of the comments here represent behavioural changes. The Waiter is initialized at the start ...
6 years, 6 months ago (2014-06-17 20:27:23 UTC) #8
Yoyo Zhou
https://chromiumcodereview.appspot.com/334083002/diff/60001/extensions/browser/test_extension_registry_observer.cc File extensions/browser/test_extension_registry_observer.cc (right): https://chromiumcodereview.appspot.com/334083002/diff/60001/extensions/browser/test_extension_registry_observer.cc#newcode46 extensions/browser/test_extension_registry_observer.cc:46: : will_be_installed_waiter_(new Waiter()), On 2014/06/17 18:15:37, Yoyo Zhou wrote: ...
6 years, 6 months ago (2014-06-17 21:48:07 UTC) #9
not at google - send to devlin
yeah passing into the constructor would be easier.
6 years, 6 months ago (2014-06-18 20:42:25 UTC) #10
limasdf
Sorry for being late. PTAL! https://codereview.chromium.org/334083002/diff/60001/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc File chrome/browser/extensions/api/content_settings/content_settings_apitest.cc (right): https://codereview.chromium.org/334083002/diff/60001/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc#newcode203 chrome/browser/extensions/api/content_settings/content_settings_apitest.cc:203: LOG(INFO) << "uninstallid:" + ...
6 years, 6 months ago (2014-06-19 18:06:28 UTC) #11
Yoyo Zhou
https://codereview.chromium.org/334083002/diff/80001/extensions/browser/test_extension_registry_observer.cc File extensions/browser/test_extension_registry_observer.cc (right): https://codereview.chromium.org/334083002/diff/80001/extensions/browser/test_extension_registry_observer.cc#newcode15 extensions/browser/test_extension_registry_observer.cc:15: : observed_(false), runner_(NULL), extension_id_(extension_id) {} Actually, I think the ...
6 years, 6 months ago (2014-06-19 18:23:35 UTC) #12
limasdf
https://codereview.chromium.org/334083002/diff/80001/extensions/browser/test_extension_registry_observer.cc File extensions/browser/test_extension_registry_observer.cc (right): https://codereview.chromium.org/334083002/diff/80001/extensions/browser/test_extension_registry_observer.cc#newcode15 extensions/browser/test_extension_registry_observer.cc:15: : observed_(false), runner_(NULL), extension_id_(extension_id) {} On 2014/06/19 18:23:35, Yoyo ...
6 years, 6 months ago (2014-06-19 18:34:01 UTC) #13
Yoyo Zhou
LGTM
6 years, 6 months ago (2014-06-19 21:16:18 UTC) #14
limasdf
Added Lei, for the gypi file. Lei could you take a look?
6 years, 6 months ago (2014-06-19 23:21:46 UTC) #15
Lei Zhang
lgtm with some nits https://codereview.chromium.org/334083002/diff/100001/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc File chrome/browser/extensions/api/content_settings/content_settings_apitest.cc (right): https://codereview.chromium.org/334083002/diff/100001/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc#newcode201 chrome/browser/extensions/api/content_settings/content_settings_apitest.cc:201: extensions::TestExtensionRegistryObserver observer( you can omit ...
6 years, 6 months ago (2014-06-19 23:48:11 UTC) #16
limasdf
Thanks for the review https://codereview.chromium.org/334083002/diff/100001/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc File chrome/browser/extensions/api/content_settings/content_settings_apitest.cc (right): https://codereview.chromium.org/334083002/diff/100001/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc#newcode201 chrome/browser/extensions/api/content_settings/content_settings_apitest.cc:201: extensions::TestExtensionRegistryObserver observer( On 2014/06/19 23:48:10, ...
6 years, 6 months ago (2014-06-20 14:04:27 UTC) #17
limasdf
The CQ bit was checked by limasdf@gmail.com
6 years, 6 months ago (2014-06-20 14:04:32 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/limasdf@gmail.com/334083002/120001
6 years, 6 months ago (2014-06-20 14:06:07 UTC) #19
limasdf
The CQ bit was unchecked by limasdf@gmail.com
6 years, 6 months ago (2014-06-20 14:37:53 UTC) #20
limasdf
The CQ bit was checked by limasdf@gmail.com
6 years, 6 months ago (2014-06-20 14:40:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/limasdf@gmail.com/334083002/140001
6 years, 6 months ago (2014-06-20 14:42:22 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-20 19:29:54 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-20 19:33:15 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/75240)
6 years, 6 months ago (2014-06-20 19:33:16 UTC) #25
limasdf
The CQ bit was checked by limasdf@gmail.com
6 years, 6 months ago (2014-06-21 09:25:07 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/limasdf@gmail.com/334083002/140001
6 years, 6 months ago (2014-06-21 09:25:42 UTC) #27
limasdf
@Pawel, Could you take a look as the owner of content/public/test?
6 years, 6 months ago (2014-06-21 10:52:20 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-21 12:34:29 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-21 12:38:12 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/75458)
6 years, 6 months ago (2014-06-21 12:38:13 UTC) #31
limasdf
@Pawel, Could you take a look as the owner of content/public/test?
6 years, 6 months ago (2014-06-24 12:40:34 UTC) #32
limasdf
added @sky @sky, Could you kindly take a look as the owner of content/public/test?
6 years, 5 months ago (2014-06-26 23:42:07 UTC) #33
sky
I don't see any changes to content/public/test here. Is there something else I need to ...
6 years, 5 months ago (2014-06-27 17:48:40 UTC) #34
limasdf
Actually there's no change from content/public/test/. But there's presubmit error, presubmit require LGTM from the ...
6 years, 5 months ago (2014-06-27 17:50:18 UTC) #35
sky
ic, LGTM
6 years, 5 months ago (2014-06-27 18:20:59 UTC) #36
limasdf
Thank you very much for the review! and sorry to bother you.
6 years, 5 months ago (2014-06-27 18:22:53 UTC) #37
limasdf
The CQ bit was checked by limasdf@gmail.com
6 years, 5 months ago (2014-06-27 18:23:01 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/limasdf@gmail.com/334083002/160001
6 years, 5 months ago (2014-06-27 18:24:54 UTC) #39
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-06-27 20:24:15 UTC) #40
commit-bot: I haz the power
6 years, 5 months ago (2014-06-27 21:39:48 UTC) #41
Message was sent while issue was closed.
Change committed as 280415

Powered by Google App Engine
This is Rietveld 408576698