Commit 953d0f88 authored by Mohamed Adel's avatar Mohamed Adel Committed by Commit Bot

Adds tests for NPB Mac UNNotification

This adds tests for the different methods in the bridge, and the
different scenarios that can happen when displaying a notification. It
also tests features specific to the API.

Change-Id: Id58fe2a63c19baf2b1cb6a83cc488d3c060692cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2517466Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Reviewed-by: default avatarRichard Knoll <knollr@chromium.org>
Reviewed-by: default avatarRayan Kanso <rayankans@chromium.org>
Commit-Queue: Mohamed Adel <adelm@google.com>
Cr-Commit-Position: refs/heads/master@{#825848}
parent e996374e
......@@ -32,6 +32,7 @@ base::scoped_nsobject<UNNotificationBuilder> NewTestBuilder(
[builder setProfileId:@"profileId"];
[builder setIncognito:false];
[builder setCreatorPid:@1];
[builder setShowSettingsButton:NO];
[builder setNotificationType:[NSNumber numberWithInt:static_cast<int>(type)]];
return builder;
}
......
......@@ -3908,6 +3908,7 @@ test("unit_tests") {
"../browser/mac/exception_processor_unittest.mm",
"../browser/mac/keystone_glue_unittest.mm",
"../browser/notifications/notification_platform_bridge_mac_unittest.mm",
"../browser/notifications/notification_platform_bridge_mac_unnotification_unittest.mm",
"../browser/notifications/notification_platform_bridge_mac_utils_unittest.mm",
"../browser/notifications/stub_alert_dispatcher_mac.h",
"../browser/notifications/stub_alert_dispatcher_mac.mm",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment