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 "chrome/browser/android/offline_pages/background_loader_offliner.h" | 5 #include "chrome/browser/offline_pages/background_loader_offliner.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/test/histogram_tester.h" | 9 #include "base/test/histogram_tester.h" |
10 #include "base/test/scoped_feature_list.h" | 10 #include "base/test/scoped_feature_list.h" |
11 #include "base/test/scoped_mock_time_message_loop_task_runner.h" | 11 #include "base/test/scoped_mock_time_message_loop_task_runner.h" |
12 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "chrome/browser/android/offline_pages/offliner_helper.h" | 13 #include "chrome/browser/android/offline_pages/offliner_helper.h" |
14 #include "chrome/browser/net/prediction_options.h" | 14 #include "chrome/browser/net/prediction_options.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 CompleteLoading(); | 640 CompleteLoading(); |
641 PumpLoop(); | 641 PumpLoop(); |
642 | 642 |
643 // One extra part should be added if the flag is on. | 643 // One extra part should be added if the flag is on. |
644 content::MHTMLExtraParts* extra_parts = | 644 content::MHTMLExtraParts* extra_parts = |
645 content::MHTMLExtraParts::FromWebContents(offliner()->web_contents()); | 645 content::MHTMLExtraParts::FromWebContents(offliner()->web_contents()); |
646 EXPECT_EQ(extra_parts->size(), 1); | 646 EXPECT_EQ(extra_parts->size(), 1); |
647 } | 647 } |
648 | 648 |
649 } // namespace offline_pages | 649 } // namespace offline_pages |
OLD | NEW |