| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ash/common/devtools/ash_devtools_dom_agent.h" | 5 #include "ash/common/devtools/ash_devtools_dom_agent.h" |
| 6 | 6 |
| 7 #include "ash/common/test/ash_test.h" | 7 #include "ash/common/test/ash_test.h" |
| 8 #include "ash/common/wm_lookup.h" | 8 #include "ash/common/wm_lookup.h" |
| 9 #include "ash/common/wm_shell.h" | 9 #include "ash/common/wm_shell.h" |
| 10 #include "ash/common/wm_window.h" | 10 #include "ash/common/wm_window.h" |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 Array<DOM::Node>* default_children = nullptr; | 139 Array<DOM::Node>* default_children = nullptr; |
| 140 ASSERT_TRUE(parent_node->getChildren(default_children)); | 140 ASSERT_TRUE(parent_node->getChildren(default_children)); |
| 141 Compare(child_window, parent_node->getChildren(default_children)->get(0)); | 141 Compare(child_window, parent_node->getChildren(default_children)->get(0)); |
| 142 Array<DOM::Node>* widget_children = | 142 Array<DOM::Node>* widget_children = |
| 143 widget_node->getChildren(default_children); | 143 widget_node->getChildren(default_children); |
| 144 ASSERT_TRUE(widget_children); | 144 ASSERT_TRUE(widget_children); |
| 145 Compare(widget->GetRootView(), widget_children->get(0)); | 145 Compare(widget->GetRootView(), widget_children->get(0)); |
| 146 ASSERT_TRUE(widget_children->get(0)->getChildren(default_children)); | 146 ASSERT_TRUE(widget_children->get(0)->getChildren(default_children)); |
| 147 Compare(child_view, | 147 Compare(child_view, |
| 148 widget_children->get(0)->getChildren(default_children)->get(1)); | 148 widget_children->get(0)->getChildren(default_children)->get(1)); |
| 149 // TODO(mhashmi): Remove this call and mock FrontendChannel |
| 150 dom_agent()->disable(); |
| 149 } | 151 } |
| 150 | 152 |
| 151 } // namespace ash | 153 } // namespace ash |
| OLD | NEW |