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

Issue 2138873002: Add tests for the Display operation of the mac notification bridge. (Closed)

Created:
4 years, 5 months ago by Miguel Garcia
Modified:
4 years, 2 months ago
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, shrike
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add tests for the Display operation of the mac notification bridge. Refactor the ability to create test notification objects so it can be shared across tests. BUG=571056 Committed: https://crrev.com/dbb2e2330b0455ce9256bc13e61c7ffc63c58ee7 Cr-Commit-Position: refs/heads/master@{#425403}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 15

Patch Set 3 : review #

Patch Set 4 : revert files #

Total comments: 14

Patch Set 5 : review #

Patch Set 6 : removed OCMOck deps #

Patch Set 7 : Switch one test to ScopedObjCClassSwizzler #

Patch Set 8 : scoped swizzle #

Total comments: 10

Patch Set 9 : review #

Patch Set 10 : format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -40 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm View 1 2 3 4 5 6 7 8 9 2 chunks +145 lines, -40 lines 0 comments Download

Messages

Total messages: 43 (17 generated)
Miguel Garcia
Contains an important hack to avoid touching NSUserNotoficationCenter properties during tests. I have started an ...
4 years, 5 months ago (2016-07-11 17:10:17 UTC) #4
Peter Beverloo
https://codereview.chromium.org/2138873002/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac.mm File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): https://codereview.chromium.org/2138873002/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode95 chrome/browser/notifications/notification_platform_bridge_mac.mm:95: NotificationPlatformBridgeMac(notification_center, true /* set_delegate */); You can define a ...
4 years, 5 months ago (2016-07-11 17:25:48 UTC) #5
Miguel Garcia
https://codereview.chromium.org/2138873002/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm File chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm (right): https://codereview.chromium.org/2138873002/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm#newcode120 chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm:120: "Title", "Context", "https://gmail.com", "", "", What do you suggest? ...
4 years, 5 months ago (2016-07-12 11:06:59 UTC) #6
Miguel Garcia
https://codereview.chromium.org/2138873002/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac.mm File chrome/browser/notifications/notification_platform_bridge_mac.mm (right): https://codereview.chromium.org/2138873002/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac.mm#newcode95 chrome/browser/notifications/notification_platform_bridge_mac.mm:95: NotificationPlatformBridgeMac(notification_center, true /* set_delegate */); You know I usually ...
4 years, 5 months ago (2016-07-12 16:16:24 UTC) #7
Miguel Garcia
+Nico for the DEPS file.
4 years, 5 months ago (2016-07-12 16:18:19 UTC) #9
Robert Sesek
https://codereview.chromium.org/2138873002/diff/100001/chrome/browser/notifications/notification_platform_bridge_mac.h File chrome/browser/notifications/notification_platform_bridge_mac.h (right): https://codereview.chromium.org/2138873002/diff/100001/chrome/browser/notifications/notification_platform_bridge_mac.h#newcode50 chrome/browser/notifications/notification_platform_bridge_mac.h:50: FRIEND_TEST_ALL_PREFIXES(NotificationPlatformBridgeMacTest, Since this is just to gain access to ...
4 years, 5 months ago (2016-07-12 17:33:36 UTC) #10
Peter Beverloo
lgtm https://codereview.chromium.org/2138873002/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm File chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm (right): https://codereview.chromium.org/2138873002/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm#newcode52 chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm:52: void TearDown() override { CocoaTest::TearDown(); } On 2016/07/12 ...
4 years, 5 months ago (2016-07-12 17:44:19 UTC) #11
Nico
https://codereview.chromium.org/2138873002/diff/100001/chrome/browser/DEPS File chrome/browser/DEPS (right): https://codereview.chromium.org/2138873002/diff/100001/chrome/browser/DEPS#newcode91 chrome/browser/DEPS:91: "+third_party/ocmock/OCMock/OCMock.h", why is this needed? we already have many ...
4 years, 5 months ago (2016-07-12 17:54:39 UTC) #12
Miguel Garcia
https://codereview.chromium.org/2138873002/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm File chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm (right): https://codereview.chromium.org/2138873002/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm#newcode52 chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm:52: void TearDown() override { CocoaTest::TearDown(); } On 2016/07/12 17:44:19, ...
4 years, 5 months ago (2016-07-13 14:05:16 UTC) #13
erikchen
On 2016/07/13 14:05:16, Miguel Garcia wrote: > https://codereview.chromium.org/2138873002/diff/60001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm > File chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm > (right): > > ...
4 years, 3 months ago (2016-09-15 18:03:57 UTC) #14
Miguel Garcia
Ok so I removed the OCMock dependency altogether and replaced it with a version of ...
4 years, 2 months ago (2016-09-30 15:02:43 UTC) #18
Robert Sesek
On 2016/09/30 15:02:43, Miguel Garcia wrote: > Ok so I removed the OCMock dependency altogether ...
4 years, 2 months ago (2016-10-05 20:28:40 UTC) #21
Miguel Garcia
On 2016/10/05 20:28:40, Robert Sesek wrote: > On 2016/09/30 15:02:43, Miguel Garcia wrote: > > ...
4 years, 2 months ago (2016-10-07 11:04:30 UTC) #22
Robert Sesek
Can you explain the problem you're seeing? I patched this CL in and was able ...
4 years, 2 months ago (2016-10-11 20:29:45 UTC) #23
Miguel Garcia
On 2016/10/11 20:29:45, Robert Sesek wrote: > Can you explain the problem you're seeing? I ...
4 years, 2 months ago (2016-10-13 14:50:29 UTC) #24
Robert Sesek
Glad you figured out the problem! https://codereview.chromium.org/2138873002/diff/180001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm File chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm (right): https://codereview.chromium.org/2138873002/diff/180001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm#newcode4 chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm:4: #import <objc/runtime.h> nit: ...
4 years, 2 months ago (2016-10-13 16:47:33 UTC) #25
Miguel Garcia
https://codereview.chromium.org/2138873002/diff/180001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm File chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm (right): https://codereview.chromium.org/2138873002/diff/180001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm#newcode17 chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm:17: #include "third_party/ocmock/gtest_support.h" On 2016/10/13 16:47:32, Robert Sesek wrote: > ...
4 years, 2 months ago (2016-10-14 10:58:14 UTC) #26
Robert Sesek
LGTM https://codereview.chromium.org/2138873002/diff/180001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm File chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm (right): https://codereview.chromium.org/2138873002/diff/180001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm#newcode67 chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm:67: NotificationDelegate* delegate(new MockNotificationDelegate("id1")); On 2016/10/14 10:58:13, Miguel Garcia ...
4 years, 2 months ago (2016-10-14 14:21:26 UTC) #27
Miguel Garcia
On 2016/10/14 14:21:26, Robert Sesek wrote: > LGTM > > https://codereview.chromium.org/2138873002/diff/180001/chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm > File chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm > ...
4 years, 2 months ago (2016-10-14 15:43:52 UTC) #28
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/2138873002/220001
4 years, 2 months ago (2016-10-14 15:59:22 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/281390)
4 years, 2 months ago (2016-10-14 16:10:10 UTC) #33
Miguel Garcia
+jochen for the chrome/browser/DEPS review
4 years, 2 months ago (2016-10-14 16:29:50 UTC) #35
Nico
chrome/browser/DEPS lgtm
4 years, 2 months ago (2016-10-14 18:43:03 UTC) #37
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/2138873002/220001
4 years, 2 months ago (2016-10-14 18:43:50 UTC) #39
commit-bot: I haz the power
Committed patchset #10 (id:220001)
4 years, 2 months ago (2016-10-14 18:50:41 UTC) #41
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 18:55:11 UTC) #43
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/dbb2e2330b0455ce9256bc13e61c7ffc63c58ee7
Cr-Commit-Position: refs/heads/master@{#425403}

Powered by Google App Engine
This is Rietveld 408576698