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

Unified Diff: ui/views/controls/native/native_view_host_aura_unittest.cc

Issue 2018333002: views/mus: Add support for child widgets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 7 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 | ui/views/mus/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/native/native_view_host_aura_unittest.cc
diff --git a/ui/views/controls/native/native_view_host_aura_unittest.cc b/ui/views/controls/native/native_view_host_aura_unittest.cc
index dbc34713528cfff784ee8046f62f8d4307d8f795..fc0bb8cc866628b3d2d4676f1c6c861fa7080964 100644
--- a/ui/views/controls/native/native_view_host_aura_unittest.cc
+++ b/ui/views/controls/native/native_view_host_aura_unittest.cc
@@ -257,15 +257,13 @@ TEST_F(NativeViewHostAuraTest, InstallClip) {
TEST_F(NativeViewHostAuraTest, ParentAfterDetach) {
CreateHost();
aura::Window* child_win = child()->GetNativeView();
- aura::Window* root_window = child_win->GetRootWindow();
- aura::WindowTreeHost* child_win_tree_host = child_win->GetHost();
NativeViewHostWindowObserver test_observer;
child_win->AddObserver(&test_observer);
host()->Detach();
- EXPECT_EQ(root_window, child_win->GetRootWindow());
- EXPECT_EQ(child_win_tree_host, child_win->GetHost());
+ EXPECT_EQ(nullptr, child_win->GetRootWindow());
+ EXPECT_EQ(nullptr, child_win->GetHost());
DestroyHost();
« no previous file with comments | « no previous file | ui/views/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698