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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 5
6 #include "chrome/browser/prefs/pref_service.h" 6 #include "chrome/browser/prefs/pref_service.h"
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/safe_browsing/malware_details.h" 8 #include "chrome/browser/safe_browsing/malware_details.h"
9 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" 9 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
11 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 11 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
12 #include "content/browser/tab_contents/navigation_entry.h" 12 #include "content/browser/tab_contents/navigation_entry.h"
13 #include "content/browser/tab_contents/test_tab_contents.h" 13 #include "content/browser/tab_contents/test_tab_contents.h"
14 #include "content/common/view_messages.h" 14 #include "content/common/view_messages.h"
15 #include "content/test/test_browser_thread.h" 15 #include "content/test/test_browser_thread.h"
16 16
17 using content::BrowserThread;
18
17 static const char* kGoogleURL = "http://www.google.com/"; 19 static const char* kGoogleURL = "http://www.google.com/";
18 static const char* kGoodURL = "http://www.goodguys.com/"; 20 static const char* kGoodURL = "http://www.goodguys.com/";
19 static const char* kBadURL = "http://www.badguys.com/"; 21 static const char* kBadURL = "http://www.badguys.com/";
20 static const char* kBadURL2 = "http://www.badguys2.com/"; 22 static const char* kBadURL2 = "http://www.badguys2.com/";
21 static const char* kBadURL3 = "http://www.badguys3.com/"; 23 static const char* kBadURL3 = "http://www.badguys3.com/";
22 24
23 // A SafeBrowingBlockingPage class that does not create windows. 25 // A SafeBrowingBlockingPage class that does not create windows.
24 class TestSafeBrowsingBlockingPage : public SafeBrowsingBlockingPage { 26 class TestSafeBrowsingBlockingPage : public SafeBrowsingBlockingPage {
25 public: 27 public:
26 TestSafeBrowsingBlockingPage(SafeBrowsingService* service, 28 TestSafeBrowsingBlockingPage(SafeBrowsingService* service,
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 594
593 EXPECT_TRUE(profile->GetPrefs()->GetBoolean( 595 EXPECT_TRUE(profile->GetPrefs()->GetBoolean(
594 prefs::kSafeBrowsingReportingEnabled)); 596 prefs::kSafeBrowsingReportingEnabled));
595 597
596 // Simulate the user uncheck the report agreement checkbox. 598 // Simulate the user uncheck the report agreement checkbox.
597 sb_interstitial->SetReportingPreference(false); 599 sb_interstitial->SetReportingPreference(false);
598 600
599 EXPECT_FALSE(profile->GetPrefs()->GetBoolean( 601 EXPECT_FALSE(profile->GetPrefs()->GetBoolean(
600 prefs::kSafeBrowsingReportingEnabled)); 602 prefs::kSafeBrowsingReportingEnabled));
601 } 603 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698