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

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

Issue 6575009: Move files out of chrome\browser\renderer_host\test alongside their source. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <algorithm> 5 #include <algorithm>
6 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
7 6
8 #include "chrome/browser/browser_thread.h" 7 #include "chrome/browser/browser_thread.h"
9 #include "chrome/browser/safe_browsing/malware_details.h" 8 #include "chrome/browser/safe_browsing/malware_details.h"
10 #include "chrome/browser/safe_browsing/report.pb.h" 9 #include "chrome/browser/safe_browsing/report.pb.h"
11 #include "chrome/browser/tab_contents/navigation_entry.h"
12 #include "chrome/browser/tab_contents/test_tab_contents.h"
13 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
14 #include "chrome/common/render_messages_params.h" 11 #include "chrome/common/render_messages_params.h"
12 #include "content/browser/renderer_host/test_render_view_host.h"
13 #include "content/browser/tab_contents/navigation_entry.h"
14 #include "content/browser/tab_contents/test_tab_contents.h"
15 15
16 static const char* kOriginalLandingURL = "http://www.originallandingpage.com/"; 16 static const char* kOriginalLandingURL = "http://www.originallandingpage.com/";
17 static const char* kLandingURL = "http://www.landingpage.com/"; 17 static const char* kLandingURL = "http://www.landingpage.com/";
18 static const char* kMalwareURL = "http://www.malware.com/"; 18 static const char* kMalwareURL = "http://www.malware.com/";
19 static const char* kHttpsURL = "https://www.url.com/"; 19 static const char* kHttpsURL = "https://www.url.com/";
20 static const char* kDOMChildURL = "http://www.domparent.com/"; 20 static const char* kDOMChildURL = "http://www.domparent.com/";
21 static const char* kDOMParentURL = "http://www.domchild.com/"; 21 static const char* kDOMParentURL = "http://www.domchild.com/";
22 static const char* kFirstRedirectURL = "http://redirectone.com/"; 22 static const char* kFirstRedirectURL = "http://redirectone.com/";
23 static const char* kSecondRedirectURL = "http://redirecttwo.com/"; 23 static const char* kSecondRedirectURL = "http://redirecttwo.com/";
24 24
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 pb_resource->set_url(kFirstRedirectURL); 284 pb_resource->set_url(kFirstRedirectURL);
285 pb_resource->set_parent_id(1); 285 pb_resource->set_parent_id(1);
286 286
287 pb_resource = expected.add_resources(); 287 pb_resource = expected.add_resources();
288 pb_resource->set_id(4); 288 pb_resource->set_id(4);
289 pb_resource->set_url(kSecondRedirectURL); 289 pb_resource->set_url(kSecondRedirectURL);
290 pb_resource->set_parent_id(3); 290 pb_resource->set_parent_id(3);
291 291
292 VerifyResults(actual, expected); 292 VerifyResults(actual, expected);
293 } 293 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698