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

Unified Diff: components/guest_view/browser/guest_view_manager_unittest.cc

Issue 2965403002: Remove unnecessary TestBrowserContext (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/guest_view/browser/guest_view_manager_unittest.cc
diff --git a/components/guest_view/browser/guest_view_manager_unittest.cc b/components/guest_view/browser/guest_view_manager_unittest.cc
index aeec9016df165756f8df9c1af1a35a317383ea70..654efcbc8b5ad6a962ccb508cc95e1b0b362c888 100644
--- a/components/guest_view/browser/guest_view_manager_unittest.cc
+++ b/components/guest_view/browser/guest_view_manager_unittest.cc
@@ -10,7 +10,6 @@
#include "base/macros.h"
#include "components/guest_view/browser/guest_view_manager_delegate.h"
#include "components/guest_view/browser/test_guest_view_manager.h"
-#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -29,23 +28,20 @@ class GuestViewManagerTest : public content::RenderViewHostTestHarness {
std::unique_ptr<WebContents> CreateWebContents() {
return std::unique_ptr<WebContents>(
- WebContentsTester::CreateTestWebContents(&browser_context_, NULL));
+ WebContentsTester::CreateTestWebContents(browser_context(), nullptr));
}
private:
- content::TestBrowserContext browser_context_;
-
DISALLOW_COPY_AND_ASSIGN(GuestViewManagerTest);
};
} // namespace
TEST_F(GuestViewManagerTest, AddRemove) {
- content::TestBrowserContext browser_context;
std::unique_ptr<GuestViewManagerDelegate> delegate(
new GuestViewManagerDelegate());
std::unique_ptr<TestGuestViewManager> manager(
- new TestGuestViewManager(&browser_context, std::move(delegate)));
+ new TestGuestViewManager(browser_context(), std::move(delegate)));
std::unique_ptr<WebContents> web_contents1(CreateWebContents());
std::unique_ptr<WebContents> web_contents2(CreateWebContents());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698