OLD | NEW |
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 "ui/views/controls/native/native_view_host.h" | 5 #include "ui/views/controls/native/native_view_host.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 #include "ui/views/controls/native/native_view_host_test_base.h" | 10 #include "ui/views/controls/native/native_view_host_test_base.h" |
11 #include "ui/views/test/views_test_base.h" | 11 #include "ui/views/test/views_test_base.h" |
12 #include "ui/views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
13 | 13 |
14 namespace views { | 14 namespace views { |
15 | 15 |
16 class NativeViewHostTest : public test::NativeViewHostTestBase { | 16 class NativeViewHostTest : public test::NativeViewHostTestBase { |
17 public: | 17 public: |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 host0->ResetParentChanges(); | 264 host0->ResetParentChanges(); |
265 host1->ResetParentChanges(); | 265 host1->ResetParentChanges(); |
266 EXPECT_EQ(0, host0->num_parent_changes()); | 266 EXPECT_EQ(0, host0->num_parent_changes()); |
267 EXPECT_EQ(0, host1->num_parent_changes()); | 267 EXPECT_EQ(0, host1->num_parent_changes()); |
268 child0->GetContentsView()->AddChildView(view1); | 268 child0->GetContentsView()->AddChildView(view1); |
269 EXPECT_EQ(0, host0->num_parent_changes()); | 269 EXPECT_EQ(0, host0->num_parent_changes()); |
270 EXPECT_EQ(2, host1->num_parent_changes()); | 270 EXPECT_EQ(2, host1->num_parent_changes()); |
271 } | 271 } |
272 | 272 |
273 } // namespace views | 273 } // namespace views |
OLD | NEW |