| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/strings/string_number_conversions.h" | 5 #include "base/strings/string_number_conversions.h" |
| 6 #include "base/strings/utf_string_conversions.h" | 6 #include "base/strings/utf_string_conversions.h" |
| 7 #include "content/browser/notifications/notification_database_data.pb.h" | 7 #include "content/browser/notifications/notification_database_data.pb.h" |
| 8 #include "content/browser/notifications/notification_database_data_conversions.h
" | 8 #include "content/browser/notifications/notification_database_data_conversions.h
" |
| 9 #include "content/common/notification_constants.h" | |
| 10 #include "content/public/browser/notification_database_data.h" | 9 #include "content/public/browser/notification_database_data.h" |
| 10 #include "content/public/common/platform_notification_data.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 const int64_t kNotificationId = 42; | 16 const int64_t kNotificationId = 42; |
| 17 const int64_t kServiceWorkerRegistrationId = 9001; | 17 const int64_t kServiceWorkerRegistrationId = 9001; |
| 18 | 18 |
| 19 const char kOrigin[] = "https://example.com/"; | 19 const char kOrigin[] = "https://example.com/"; |
| 20 const char kNotificationTitle[] = "My Notification"; | 20 const char kNotificationTitle[] = "My Notification"; |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 NotificationDatabaseData copied_data; | 127 NotificationDatabaseData copied_data; |
| 128 ASSERT_TRUE(DeserializeNotificationDatabaseData(serialized_data, | 128 ASSERT_TRUE(DeserializeNotificationDatabaseData(serialized_data, |
| 129 &copied_data)); | 129 &copied_data)); |
| 130 | 130 |
| 131 EXPECT_EQ(directions[i], copied_data.notification_data.direction); | 131 EXPECT_EQ(directions[i], copied_data.notification_data.direction); |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 | 134 |
| 135 } // namespace content | 135 } // namespace content |
| OLD | NEW |