| Index: chrome/browser/push_messaging/push_messaging_service_unittest.cc
|
| diff --git a/chrome/browser/push_messaging/push_messaging_service_unittest.cc b/chrome/browser/push_messaging/push_messaging_service_unittest.cc
|
| index a60b9859e84666a78b583d19d1d6dd4ddc7af9e5..a1139418a4e14506aad31249cc58cc5391a393d2 100644
|
| --- a/chrome/browser/push_messaging/push_messaging_service_unittest.cc
|
| +++ b/chrome/browser/push_messaging/push_messaging_service_unittest.cc
|
| @@ -243,3 +243,12 @@ TEST_F(PushMessagingServiceTest, NormalizeSenderInfo) {
|
|
|
| EXPECT_EQ(p256dh, push_service->NormalizeSenderInfo(p256dh));
|
| }
|
| +
|
| +TEST_F(PushMessagingServiceTest, DifferentEndpoints) {
|
| + PushMessagingServiceImpl* push_service = profile()->GetPushMessagingService();
|
| + ASSERT_TRUE(push_service);
|
| +
|
| + // Verifies that the service returns different endpoints depending on whether
|
| + // support for the standard protocol is requested.
|
| + EXPECT_NE(push_service->GetEndpoint(true), push_service->GetEndpoint(false));
|
| +}
|
|
|