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

Unified Diff: chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc

Issue 441753002: Route newly created notifications to notification provider API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bug fix Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc
diff --git a/chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc b/chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc
index 0e8ffb8e1e827e433b93494a35dbfe698e6db52f..4510a09f8befe5634adb29c90a5331282d4d4346 100644
--- a/chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc
+++ b/chrome/browser/extensions/api/notification_provider/notification_provider_apitest.cc
@@ -25,32 +25,7 @@ void CreateNotificationOptionsForTest(
} // namespace
IN_PROC_BROWSER_TEST_F(NotificationProviderApiTest, Events) {
- std::string sender_id1 = "SenderId1";
- std::string notification_id1 = "NotificationId1";
-
- scoped_ptr<extensions::api::notifications::NotificationOptions> options(
- new extensions::api::notifications::NotificationOptions());
- CreateNotificationOptionsForTest(options.get());
-
- ResultCatcher catcher;
- catcher.RestrictToProfile(browser()->profile());
-
- // Test notification provider extension
- const extensions::Extension* extension =
- LoadExtension(test_data_dir_.AppendASCII("notification_provider/events"));
- ASSERT_TRUE(extension);
-
- scoped_ptr<extensions::NotificationProviderEventRouter> event_router(
- new extensions::NotificationProviderEventRouter(browser()->profile()));
-
- event_router->CreateNotification(
- extension->id(), sender_id1, notification_id1, *options);
- event_router->UpdateNotification(
- extension->id(), sender_id1, notification_id1, *options);
- event_router->ClearNotification(
- extension->id(), sender_id1, notification_id1);
-
- EXPECT_TRUE(catcher.GetNextResult()) << catcher.message();
+ ASSERT_TRUE(RunExtensionTest("notification_provider/events")) << message_;
}
IN_PROC_BROWSER_TEST_F(NotificationProviderApiTest, TestBasicUsage) {

Powered by Google App Engine
This is Rietveld 408576698