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

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

Issue 155071: Do some refactoring of renderer_host.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/renderer_host/test_render_view_host.h" 5 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
6 6
7 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" 7 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h"
8 #include "chrome/browser/tab_contents/navigation_entry.h" 8 #include "chrome/browser/tab_contents/navigation_entry.h"
9 #include "chrome/common/render_messages.h" 9 #include "chrome/common/render_messages.h"
10 10
11 using webkit_glue::PasswordForm; 11 using webkit_glue::PasswordForm;
12 12
13 static const char* kGoogleURL = "http://www.google.com/"; 13 static const char* kGoogleURL = "http://www.google.com/";
14 static const char* kGoodURL = "http://www.goodguys.com/"; 14 static const char* kGoodURL = "http://www.goodguys.com/";
15 static const char* kBadURL = "http://www.badguys.com/"; 15 static const char* kBadURL = "http://www.badguys.com/";
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 ASSERT_TRUE(sb_interstitial); 348 ASSERT_TRUE(sb_interstitial);
349 349
350 // Proceed through the 2nd interstitial. 350 // Proceed through the 2nd interstitial.
351 ProceedThroughInterstitial(sb_interstitial); 351 ProceedThroughInterstitial(sb_interstitial);
352 EXPECT_EQ(OK, user_response()); 352 EXPECT_EQ(OK, user_response());
353 353
354 // We did proceed, we should be back to the initial page. 354 // We did proceed, we should be back to the initial page.
355 ASSERT_EQ(1, controller().entry_count()); 355 ASSERT_EQ(1, controller().entry_count());
356 EXPECT_EQ(kGoodURL, controller().GetActiveEntry()->url().spec()); 356 EXPECT_EQ(kGoodURL, controller().GetActiveEntry()->url().spec());
357 } 357 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698