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

Side by Side Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <list> 5 #include <list>
6 6
7 #include "base/prefs/pref_service.h"
8 #include "base/run_loop.h" 7 #include "base/run_loop.h"
9 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" 9 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h"
11 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 10 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
12 #include "chrome/browser/safe_browsing/threat_details.h" 11 #include "chrome/browser/safe_browsing/threat_details.h"
13 #include "chrome/browser/safe_browsing/ui_manager.h" 12 #include "chrome/browser/safe_browsing/ui_manager.h"
14 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
15 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 14 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
15 #include "components/prefs/pref_service.h"
16 #include "content/public/browser/interstitial_page.h" 16 #include "content/public/browser/interstitial_page.h"
17 #include "content/public/browser/navigation_entry.h" 17 #include "content/public/browser/navigation_entry.h"
18 #include "content/public/browser/render_process_host.h" 18 #include "content/public/browser/render_process_host.h"
19 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
20 #include "content/public/test/web_contents_tester.h" 20 #include "content/public/test/web_contents_tester.h"
21 21
22 using content::InterstitialPage; 22 using content::InterstitialPage;
23 using content::NavigationEntry; 23 using content::NavigationEntry;
24 using content::WebContents; 24 using content::WebContents;
25 using content::WebContentsTester; 25 using content::WebContentsTester;
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 876
877 // No report should have been sent. 877 // No report should have been sent.
878 EXPECT_EQ(0u, ui_manager_->GetDetails()->size()); 878 EXPECT_EQ(0u, ui_manager_->GetDetails()->size());
879 ui_manager_->GetDetails()->clear(); 879 ui_manager_->GetDetails()->clear();
880 } 880 }
881 881
882 // TODO(mattm): Add test for extended reporting not shown or sent in incognito 882 // TODO(mattm): Add test for extended reporting not shown or sent in incognito
883 // window. 883 // window.
884 884
885 } // namespace safe_browsing 885 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698