class TestViewAccess
Defined at line 27 of file ../../src/ui/testing/util/test_view.h
Used to open up access to TestView internals, since LocalComponentImpl (and thus TestView) is not
accessible directly to the test fixture.
Protected Members
WeakPtr test_view_
Public Methods
void SetTestView (const fxl::WeakPtr<TestView> & view)
Must be called by TestView as soon as practical.
Defined at line 23 of file ../../src/ui/testing/util/test_view.cc
void ~TestViewAccess ()
Defined at line 29 of file ../../src/ui/testing/util/test_view.h
bool HasView ()
Check that view access is possible. Since view creation is lazy, access may
not be initially possible for a while.
Defined at line 36 of file ../../src/ui/testing/util/test_view.h
TestView * view ()
Since view component creation may be lazy, check first whether HasView()
returns true before calling this.
Defined at line 40 of file ../../src/ui/testing/util/test_view.h