Chromium Code Reviews

Side by Side Diff: chrome/browser/visitedlink/visitedlink_unittest.cc

Issue 6319001: Support window.opener after a process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/webui/web_ui_unittest.cc ('k') | chrome/common/chrome_content_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <vector> 5 #include <vector>
6 #include <string> 6 #include <string>
7 #include <cstdio> 7 #include <cstdio>
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 494 matching lines...)
505 Source<RenderProcessHost>(this), NotificationService::NoDetails()); 505 Source<RenderProcessHost>(this), NotificationService::NoDetails());
506 } 506 }
507 507
508 virtual bool Init(bool is_accessibility_enabled) { 508 virtual bool Init(bool is_accessibility_enabled) {
509 return true; 509 return true;
510 } 510 }
511 511
512 virtual void CancelResourceRequests(int render_widget_id) { 512 virtual void CancelResourceRequests(int render_widget_id) {
513 } 513 }
514 514
515 virtual void CrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params) { 515 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params) {
516 } 516 }
517 517
518 virtual bool WaitForPaintMsg(int render_widget_id, 518 virtual bool WaitForPaintMsg(int render_widget_id,
519 const base::TimeDelta& max_delay, 519 const base::TimeDelta& max_delay,
520 IPC::Message* msg) { 520 IPC::Message* msg) {
521 return false; 521 return false;
522 } 522 }
523 523
524 virtual bool Send(IPC::Message* msg) { 524 virtual bool Send(IPC::Message* msg) {
525 VisitCountingProfile* counting_profile = 525 VisitCountingProfile* counting_profile =
(...skipping 191 matching lines...)
717 EXPECT_EQ(1, profile()->add_event_count()); 717 EXPECT_EQ(1, profile()->add_event_count());
718 EXPECT_EQ(0, profile()->reset_event_count()); 718 EXPECT_EQ(0, profile()->reset_event_count());
719 719
720 // Activate the tab. 720 // Activate the tab.
721 rvh()->WasRestored(); 721 rvh()->WasRestored();
722 722
723 // We should have only one more reset event. 723 // We should have only one more reset event.
724 EXPECT_EQ(1, profile()->add_event_count()); 724 EXPECT_EQ(1, profile()->add_event_count());
725 EXPECT_EQ(1, profile()->reset_event_count()); 725 EXPECT_EQ(1, profile()->reset_event_count());
726 } 726 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/web_ui_unittest.cc ('k') | chrome/common/chrome_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine