OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/memory/ptr_util.h" |
10 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 11 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
11 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 12 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
12 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" | 13 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" |
13 #include "chrome/browser/predictors/resource_prefetch_predictor.h" | 14 #include "chrome/browser/predictors/resource_prefetch_predictor.h" |
14 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" | 15 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" |
15 #include "chrome/browser/predictors/resource_prefetch_predictor_test_util.h" | 16 #include "chrome/browser/predictors/resource_prefetch_predictor_test_util.h" |
16 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
18 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 19 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
19 #include "chrome/common/chrome_switches.h" | 20 #include "chrome/common/chrome_switches.h" |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 NavigateToURLAndCheckSubresources(GetURL(kHtmlSubresourcesPath), | 712 NavigateToURLAndCheckSubresources(GetURL(kHtmlSubresourcesPath), |
712 WindowOpenDisposition::NEW_WINDOW); | 713 WindowOpenDisposition::NEW_WINDOW); |
713 EXPECT_EQ(navigation_ids_history_size(), 3U); | 714 EXPECT_EQ(navigation_ids_history_size(), 3U); |
714 ClearCache(); | 715 ClearCache(); |
715 NavigateToURLAndCheckSubresources(GetURL(kHtmlSubresourcesPath), | 716 NavigateToURLAndCheckSubresources(GetURL(kHtmlSubresourcesPath), |
716 WindowOpenDisposition::NEW_POPUP); | 717 WindowOpenDisposition::NEW_POPUP); |
717 EXPECT_EQ(navigation_ids_history_size(), 4U); | 718 EXPECT_EQ(navigation_ids_history_size(), 4U); |
718 } | 719 } |
719 | 720 |
720 } // namespace predictors | 721 } // namespace predictors |
OLD | NEW |