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

Unified Diff: chrome/browser/safe_browsing/malware_details_unittest.cc

Issue 9706012: Add abstractions that let embedders drive tests of WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove CONTENT_EXPORT on statically linked functions. Merge to head for commit. Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/malware_details_unittest.cc
diff --git a/chrome/browser/safe_browsing/malware_details_unittest.cc b/chrome/browser/safe_browsing/malware_details_unittest.cc
index 5530af1fdb01b5df65ae53af53d7066402b7027f..4e3593edea91191c0189cdee72b3707a9788a4fe 100644
--- a/chrome/browser/safe_browsing/malware_details_unittest.cc
+++ b/chrome/browser/safe_browsing/malware_details_unittest.cc
@@ -17,9 +17,11 @@
#include "chrome/common/safe_browsing/safebrowsing_messages.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
-#include "content/browser/tab_contents/test_tab_contents.h"
+#include "content/public/browser/render_process_host.h"
+#include "content/public/browser/web_contents.h"
#include "content/test/test_browser_thread.h"
#include "net/base/io_buffer.h"
+#include "net/base/net_errors.h"
#include "net/base/test_completion_callback.h"
#include "net/disk_cache/disk_cache.h"
#include "net/http/http_cache.h"
@@ -51,6 +53,7 @@ static const char* kLandingHeaders =
static const char* kLandingData = "<iframe src='http://www.malware.com'>";
using content::BrowserThread;
+using content::WebContents;
using safe_browsing::ClientMalwareReportRequest;
namespace {
@@ -128,10 +131,10 @@ void QuitUIMessageLoop() {
class MalwareDetailsWrap : public MalwareDetails {
public:
MalwareDetailsWrap(SafeBrowsingService* sb_service,
- TabContents* tab_contents,
+ WebContents* web_contents,
const SafeBrowsingService::UnsafeResource& unsafe_resource,
net::URLRequestContextGetter* request_context_getter)
- : MalwareDetails(sb_service, tab_contents, unsafe_resource) {
+ : MalwareDetails(sb_service, web_contents, unsafe_resource) {
request_context_getter_ = request_context_getter;
}

Powered by Google App Engine
This is Rietveld 408576698