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