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 <stdint.h> |
| 6 |
5 #include "base/bind.h" | 7 #include "base/bind.h" |
6 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
7 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
8 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
9 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
10 #include "content/browser/notifications/platform_notification_context_impl.h" | 12 #include "content/browser/notifications/platform_notification_context_impl.h" |
11 #include "content/browser/service_worker/embedded_worker_test_helper.h" | 13 #include "content/browser/service_worker/embedded_worker_test_helper.h" |
12 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 14 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
13 #include "content/common/service_worker/service_worker_types.h" | 15 #include "content/common/service_worker/service_worker_types.h" |
14 #include "content/public/browser/notification_database_data.h" | 16 #include "content/public/browser/notification_database_data.h" |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 ASSERT_EQ(10u, notification_database_datas.size()); | 414 ASSERT_EQ(10u, notification_database_datas.size()); |
413 | 415 |
414 for (int i = 0; i < 10; ++i) { | 416 for (int i = 0; i < 10; ++i) { |
415 EXPECT_EQ(origin, notification_database_datas[i].origin); | 417 EXPECT_EQ(origin, notification_database_datas[i].origin); |
416 EXPECT_EQ(kFakeServiceWorkerRegistrationId, | 418 EXPECT_EQ(kFakeServiceWorkerRegistrationId, |
417 notification_database_datas[i].service_worker_registration_id); | 419 notification_database_datas[i].service_worker_registration_id); |
418 } | 420 } |
419 } | 421 } |
420 | 422 |
421 } // namespace content | 423 } // namespace content |
OLD | NEW |