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

Side by Side Diff: components/visitedlink/test/visitedlink_unittest.cc

Issue 16490003: Pass the SiteInstance into CreateRenderProcessHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <cstdio> 5 #include <cstdio>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 574
575 DISALLOW_COPY_AND_ASSIGN(VisitRelayingRenderProcessHost); 575 DISALLOW_COPY_AND_ASSIGN(VisitRelayingRenderProcessHost);
576 }; 576 };
577 577
578 class VisitedLinkRenderProcessHostFactory 578 class VisitedLinkRenderProcessHostFactory
579 : public content::RenderProcessHostFactory { 579 : public content::RenderProcessHostFactory {
580 public: 580 public:
581 VisitedLinkRenderProcessHostFactory() 581 VisitedLinkRenderProcessHostFactory()
582 : content::RenderProcessHostFactory() {} 582 : content::RenderProcessHostFactory() {}
583 virtual content::RenderProcessHost* CreateRenderProcessHost( 583 virtual content::RenderProcessHost* CreateRenderProcessHost(
584 content::BrowserContext* browser_context) const OVERRIDE { 584 content::BrowserContext* browser_context,
585 content::SiteInstance* site_instance,
586 content::ContentBrowserClient* client) const OVERRIDE {
585 return new VisitRelayingRenderProcessHost(browser_context); 587 return new VisitRelayingRenderProcessHost(browser_context);
586 } 588 }
587 589
588 private: 590 private:
589 591
590 DISALLOW_COPY_AND_ASSIGN(VisitedLinkRenderProcessHostFactory); 592 DISALLOW_COPY_AND_ASSIGN(VisitedLinkRenderProcessHostFactory);
591 }; 593 };
592 594
593 class VisitedLinkEventsTest : public content::RenderViewHostTestHarness { 595 class VisitedLinkEventsTest : public content::RenderViewHostTestHarness {
594 public: 596 public:
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 content::NOTIFICATION_RENDERER_PROCESS_CREATED, 769 content::NOTIFICATION_RENDERER_PROCESS_CREATED,
768 content::Source<content::RenderProcessHost>(&different_process_host), 770 content::Source<content::RenderProcessHost>(&different_process_host),
769 content::NotificationService::NoDetails()); 771 content::NotificationService::NoDetails());
770 WaitForCoalescense(); 772 WaitForCoalescense();
771 773
772 EXPECT_EQ(0, different_context.new_table_count()); 774 EXPECT_EQ(0, different_context.new_table_count());
773 775
774 } 776 }
775 777
776 } // namespace visitedlink 778 } // namespace visitedlink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698