| 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 "content/browser/notifications/notification_database.h" | 5 #include "content/browser/notifications/notification_database.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
| 7 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| 11 #include "base/macros.h" |
| 8 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 10 #include "content/public/browser/notification_database_data.h" | 14 #include "content/public/browser/notification_database_data.h" |
| 11 #include "content/public/common/platform_notification_data.h" | 15 #include "content/public/common/platform_notification_data.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 17 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
| 14 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" | 18 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" |
| 15 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 16 | 20 |
| 17 namespace content { | 21 namespace content { |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 | 566 |
| 563 std::vector<NotificationDatabaseData> notifications; | 567 std::vector<NotificationDatabaseData> notifications; |
| 564 ASSERT_EQ(NotificationDatabase::STATUS_OK, | 568 ASSERT_EQ(NotificationDatabase::STATUS_OK, |
| 565 database->ReadAllNotificationDataForServiceWorkerRegistration( | 569 database->ReadAllNotificationDataForServiceWorkerRegistration( |
| 566 origin, kExampleServiceWorkerRegistrationId, ¬ifications)); | 570 origin, kExampleServiceWorkerRegistrationId, ¬ifications)); |
| 567 | 571 |
| 568 EXPECT_EQ(0u, notifications.size()); | 572 EXPECT_EQ(0u, notifications.size()); |
| 569 } | 573 } |
| 570 | 574 |
| 571 } // namespace content | 575 } // namespace content |
| OLD | NEW |