Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: chrome/browser/offline_pages/background_loader_offliner_unittest.cc

Issue 2881223002: Create chrome/browser/offline_pages to host browser-related parts of offline_pages whcih (Closed)
Patch Set: modified OWNERS and added DEPS Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/offline_pages/background_loader_offliner.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/offline_pages/background_loader_offliner.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698