| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/child/notifications/notification_data_conversions.h" | 5 #include "content/child/notifications/notification_data_conversions.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "content/public/common/platform_notification_data.h" | 8 #include "content/public/common/platform_notification_data.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "third_party/WebKit/public/platform/WebNotificationData.h" | |
| 11 #include "third_party/WebKit/public/platform/WebString.h" | 10 #include "third_party/WebKit/public/platform/WebString.h" |
| 12 #include "third_party/WebKit/public/platform/WebURL.h" | 11 #include "third_party/WebKit/public/platform/WebURL.h" |
| 12 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onData.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 const char kNotificationTitle[] = "My Notification"; | 17 const char kNotificationTitle[] = "My Notification"; |
| 18 const char kNotificationLang[] = "nl"; | 18 const char kNotificationLang[] = "nl"; |
| 19 const char kNotificationBody[] = "Hello, world!"; | 19 const char kNotificationBody[] = "Hello, world!"; |
| 20 const char kNotificationTag[] = "my_tag"; | 20 const char kNotificationTag[] = "my_tag"; |
| 21 const char kNotificationIconUrl[] = "https://example.com/icon.png"; | 21 const char kNotificationIconUrl[] = "https://example.com/icon.png"; |
| 22 | 22 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 platform_data.direction = | 89 platform_data.direction = |
| 90 PlatformNotificationData::NotificationDirectionRightToLeft; | 90 PlatformNotificationData::NotificationDirectionRightToLeft; |
| 91 | 91 |
| 92 web_data = ToWebNotificationData(platform_data); | 92 web_data = ToWebNotificationData(platform_data); |
| 93 EXPECT_EQ(blink::WebNotificationData::DirectionRightToLeft, | 93 EXPECT_EQ(blink::WebNotificationData::DirectionRightToLeft, |
| 94 web_data.direction); | 94 web_data.direction); |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace content | 97 } // namespace content |
| OLD | NEW |