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

Unified Diff: ui/views/test/scoped_views_test_helper.cc

Issue 2758323002: Broke out layout metric information from ViewsDelegate to LayoutProvider (Closed)
Patch Set: Final feedback addressed Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/test/scoped_views_test_helper.h ('k') | ui/views/test/test_views_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/scoped_views_test_helper.cc
diff --git a/ui/views/test/scoped_views_test_helper.cc b/ui/views/test/scoped_views_test_helper.cc
index 05727dbe06774f34aa14d29a218cc8d84e6563b4..7a8da8d3df52ef8c53406520adf11b710042272a 100644
--- a/ui/views/test/scoped_views_test_helper.cc
+++ b/ui/views/test/scoped_views_test_helper.cc
@@ -22,7 +22,7 @@ ScopedViewsTestHelper::ScopedViewsTestHelper()
ScopedViewsTestHelper::ScopedViewsTestHelper(
std::unique_ptr<TestViewsDelegate> views_delegate)
- : views_delegate_(std::move(views_delegate)),
+ : test_views_delegate_(std::move(views_delegate)),
platform_test_helper_(PlatformTestHelper::Create()) {
// The ContextFactory must exist before any Compositors are created.
ui::ContextFactory* context_factory = nullptr;
@@ -30,8 +30,8 @@ ScopedViewsTestHelper::ScopedViewsTestHelper(
platform_test_helper_->InitializeContextFactory(&context_factory,
&context_factory_private);
- views_delegate_->set_context_factory(context_factory);
- views_delegate_->set_context_factory_private(context_factory_private);
+ test_views_delegate_->set_context_factory(context_factory);
+ test_views_delegate_->set_context_factory_private(context_factory_private);
test_helper_.reset(ViewsTestHelper::Create(base::MessageLoopForUI::current(),
context_factory,
@@ -49,7 +49,7 @@ ScopedViewsTestHelper::~ScopedViewsTestHelper() {
test_helper_->TearDown();
test_helper_.reset();
- views_delegate_.reset();
+ test_views_delegate_.reset();
// The Mus PlatformTestHelper has state that is deleted by
// ui::TerminateContextFactoryForTests().
« no previous file with comments | « ui/views/test/scoped_views_test_helper.h ('k') | ui/views/test/test_views_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698