| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/browsing_data/browsing_data_service_worker_helper.h" | 5 #include "chrome/browser/browsing_data/browsing_data_service_worker_helper.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
| 12 #include "content/public/browser/browser_context.h" | 12 #include "content/public/browser/browser_context.h" |
| 13 #include "content/public/browser/storage_partition.h" | 13 #include "content/public/browser/storage_partition.h" |
| 14 #include "content/public/test/test_browser_thread_bundle.h" | 14 #include "content/public/test/test_browser_thread_bundle.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 class CannedBrowsingDataServiceWorkerHelperTest : public testing::Test { | 19 class CannedBrowsingDataServiceWorkerHelperTest : public testing::Test { |
| 20 public: | 20 public: |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 new CannedBrowsingDataServiceWorkerHelper(ServiceWorkerContext())); | 73 new CannedBrowsingDataServiceWorkerHelper(ServiceWorkerContext())); |
| 74 | 74 |
| 75 ASSERT_TRUE(helper->empty()); | 75 ASSERT_TRUE(helper->empty()); |
| 76 helper->AddServiceWorker(origin1, scopes); | 76 helper->AddServiceWorker(origin1, scopes); |
| 77 ASSERT_TRUE(helper->empty()); | 77 ASSERT_TRUE(helper->empty()); |
| 78 helper->AddServiceWorker(origin2, scopes); | 78 helper->AddServiceWorker(origin2, scopes); |
| 79 ASSERT_TRUE(helper->empty()); | 79 ASSERT_TRUE(helper->empty()); |
| 80 } | 80 } |
| 81 | 81 |
| 82 } // namespace | 82 } // namespace |
| OLD | NEW |