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

Side by Side Diff: content/child/notifications/notification_data_conversions_unittest.cc

Issue 893993002: Mechanical change for updating the paths to Notification Blink API files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/child/notifications/notification_data_conversions.h ('k') | content/child/notifications/notification_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698