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 <stddef.h> |
| 6 #include <stdint.h> |
| 7 |
| 8 #include "base/macros.h" |
5 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
6 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
7 #include "content/browser/notifications/notification_database_data.pb.h" | 11 #include "content/browser/notifications/notification_database_data.pb.h" |
8 #include "content/browser/notifications/notification_database_data_conversions.h
" | 12 #include "content/browser/notifications/notification_database_data_conversions.h
" |
9 #include "content/common/notification_constants.h" | 13 #include "content/common/notification_constants.h" |
10 #include "content/public/browser/notification_database_data.h" | 14 #include "content/public/browser/notification_database_data.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
13 | 17 |
14 namespace content { | 18 namespace content { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 129 |
126 NotificationDatabaseData copied_data; | 130 NotificationDatabaseData copied_data; |
127 ASSERT_TRUE( | 131 ASSERT_TRUE( |
128 DeserializeNotificationDatabaseData(serialized_data, &copied_data)); | 132 DeserializeNotificationDatabaseData(serialized_data, &copied_data)); |
129 | 133 |
130 EXPECT_EQ(directions[i], copied_data.notification_data.direction); | 134 EXPECT_EQ(directions[i], copied_data.notification_data.direction); |
131 } | 135 } |
132 } | 136 } |
133 | 137 |
134 } // namespace content | 138 } // namespace content |
OLD | NEW |