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

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: Update comments. Created 9 years, 8 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) 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"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 virtual ~VisitRelayingRenderProcessHost() { 521 virtual ~VisitRelayingRenderProcessHost() {
522 } 522 }
523 523
524 virtual bool Init(bool is_accessibility_enabled, bool is_extension_process) { 524 virtual bool Init(bool is_accessibility_enabled, bool is_extension_process) {
525 return true; 525 return true;
526 } 526 }
527 527
528 virtual void CancelResourceRequests(int render_widget_id) { 528 virtual void CancelResourceRequests(int render_widget_id) {
529 } 529 }
530 530
531 virtual void CrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params) { 531 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params) {
532 } 532 }
533 533
534 virtual bool WaitForPaintMsg(int render_widget_id, 534 virtual bool WaitForPaintMsg(int render_widget_id,
535 const base::TimeDelta& max_delay, 535 const base::TimeDelta& max_delay,
536 IPC::Message* msg) { 536 IPC::Message* msg) {
537 return false; 537 return false;
538 } 538 }
539 539
540 virtual bool Send(IPC::Message* msg) { 540 virtual bool Send(IPC::Message* msg) {
541 VisitCountingProfile* counting_profile = 541 VisitCountingProfile* counting_profile =
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 EXPECT_EQ(0, profile()->add_event_count()); 768 EXPECT_EQ(0, profile()->add_event_count());
769 EXPECT_EQ(0, profile()->reset_event_count()); 769 EXPECT_EQ(0, profile()->reset_event_count());
770 770
771 rvh()->CreateRenderView(string16()); 771 rvh()->CreateRenderView(string16());
772 772
773 // We should now have just a reset event: adds are eaten up by a reset 773 // We should now have just a reset event: adds are eaten up by a reset
774 // that followed. 774 // that followed.
775 EXPECT_EQ(0, profile()->add_event_count()); 775 EXPECT_EQ(0, profile()->add_event_count());
776 EXPECT_EQ(1, profile()->reset_event_count()); 776 EXPECT_EQ(1, profile()->reset_event_count());
777 } 777 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698