| 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 <iostream> | 5 #include <iostream> |
| 6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "chrome/browser/history/history_service.h" | 11 #include "chrome/browser/history/history_service.h" |
| 12 #include "chrome/browser/history/history_service_factory.h" | 12 #include "chrome/browser/history/history_service_factory.h" |
| 13 #include "chrome/browser/history/history_types.h" | |
| 14 #include "chrome/browser/predictors/resource_prefetch_predictor.h" | 13 #include "chrome/browser/predictors/resource_prefetch_predictor.h" |
| 15 #include "chrome/browser/predictors/resource_prefetch_predictor_tables.h" | 14 #include "chrome/browser/predictors/resource_prefetch_predictor_tables.h" |
| 16 #include "chrome/test/base/testing_profile.h" | 15 #include "chrome/test/base/testing_profile.h" |
| 16 #include "components/history/core/browser/history_types.h" |
| 17 #include "content/public/test/test_browser_thread.h" | 17 #include "content/public/test/test_browser_thread.h" |
| 18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 | 20 |
| 21 using testing::ContainerEq; | 21 using testing::ContainerEq; |
| 22 using testing::Pointee; | 22 using testing::Pointee; |
| 23 using testing::SetArgPointee; | 23 using testing::SetArgPointee; |
| 24 using testing::StrictMock; | 24 using testing::StrictMock; |
| 25 | 25 |
| 26 namespace predictors { | 26 namespace predictors { |
| (...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 predictor_->inflight_navigations_[main_frame1.navigation_id]->at(0))); | 916 predictor_->inflight_navigations_[main_frame1.navigation_id]->at(0))); |
| 917 EXPECT_TRUE(URLRequestSummaryAreEqual( | 917 EXPECT_TRUE(URLRequestSummaryAreEqual( |
| 918 resource2, | 918 resource2, |
| 919 predictor_->inflight_navigations_[main_frame1.navigation_id]->at(1))); | 919 predictor_->inflight_navigations_[main_frame1.navigation_id]->at(1))); |
| 920 EXPECT_TRUE(URLRequestSummaryAreEqual( | 920 EXPECT_TRUE(URLRequestSummaryAreEqual( |
| 921 resource3, | 921 resource3, |
| 922 predictor_->inflight_navigations_[main_frame1.navigation_id]->at(2))); | 922 predictor_->inflight_navigations_[main_frame1.navigation_id]->at(2))); |
| 923 } | 923 } |
| 924 | 924 |
| 925 } // namespace predictors | 925 } // namespace predictors |
| OLD | NEW |