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

Side by Side Diff: content/browser/notifications/notification_database_unittest.cc

Issue 1010833002: Expose bits of the Web Notification database in the //content API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-DeleteInContext
Patch Set: update a comment Created 5 years, 9 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698