| OLD | NEW |
| 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...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |