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 "chrome/browser/browsing_data/browsing_data_cache_storage_helper.h" | 5 #include "chrome/browser/browsing_data/browsing_data_cache_storage_helper.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
9 #include "chrome/test/base/testing_profile.h" | 9 #include "chrome/test/base/testing_profile.h" |
10 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
11 #include "content/public/browser/storage_partition.h" | 11 #include "content/public/browser/storage_partition.h" |
12 #include "content/public/test/test_browser_thread_bundle.h" | 12 #include "content/public/test/test_browser_thread_bundle.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 class CannedBrowsingDataCacheStorageHelperTest : public testing::Test { | 17 class CannedBrowsingDataCacheStorageHelperTest : public testing::Test { |
18 public: | 18 public: |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 new CannedBrowsingDataCacheStorageHelper(CacheStorageContext())); | 63 new CannedBrowsingDataCacheStorageHelper(CacheStorageContext())); |
64 | 64 |
65 ASSERT_TRUE(helper->empty()); | 65 ASSERT_TRUE(helper->empty()); |
66 helper->AddCacheStorage(origin1); | 66 helper->AddCacheStorage(origin1); |
67 ASSERT_TRUE(helper->empty()); | 67 ASSERT_TRUE(helper->empty()); |
68 helper->AddCacheStorage(origin2); | 68 helper->AddCacheStorage(origin2); |
69 ASSERT_TRUE(helper->empty()); | 69 ASSERT_TRUE(helper->empty()); |
70 } | 70 } |
71 | 71 |
72 } // namespace | 72 } // namespace |
OLD | NEW |