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

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

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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 <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
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, &notifications)); 570 origin, kExampleServiceWorkerRegistrationId, &notifications));
567 571
568 EXPECT_EQ(0u, notifications.size()); 572 EXPECT_EQ(0u, notifications.size());
569 } 573 }
570 574
571 } // namespace content 575 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698