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 "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "content/browser/notifications/notification_database_data.h" | 10 #include "content/public/browser/notification_database_data.h" |
11 #include "content/public/common/platform_notification_data.h" | 11 #include "content/public/common/platform_notification_data.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 13 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
14 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" | 14 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" |
15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 class NotificationDatabaseTest : public ::testing::Test { | 19 class NotificationDatabaseTest : public ::testing::Test { |
20 protected: | 20 protected: |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 database->DeleteNotificationData(notification_id, | 399 database->DeleteNotificationData(notification_id, |
400 GURL("https://chrome.com"))); | 400 GURL("https://chrome.com"))); |
401 | 401 |
402 EXPECT_EQ(NotificationDatabase::STATUS_OK, | 402 EXPECT_EQ(NotificationDatabase::STATUS_OK, |
403 database->ReadNotificationData(notification_id, | 403 database->ReadNotificationData(notification_id, |
404 origin, | 404 origin, |
405 &database_data)); | 405 &database_data)); |
406 } | 406 } |
407 | 407 |
408 } // namespace content | 408 } // namespace content |
OLD | NEW |