| 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" |
| 11 #include "base/strings/stringprintf.h" |
| 11 #include "ui/views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
| 12 | 13 |
| 13 namespace ash { | 14 namespace ash { |
| 14 namespace { | 15 namespace { |
| 15 using namespace ui::devtools::protocol; | 16 using namespace ui::devtools::protocol; |
| 16 const int kDefaultChildNodeCount = -1; | 17 const int kDefaultChildNodeCount = -1; |
| 17 | 18 |
| 18 class TestView : public views::View { | 19 class TestView : public views::View { |
| 19 public: | 20 public: |
| 20 TestView(const char* name) : views::View(), name_(name) {} | 21 TestView(const char* name) : views::View(), name_(name) {} |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 int parent_id = parent_node->getNodeId(); | 303 int parent_id = parent_node->getNodeId(); |
| 303 | 304 |
| 304 Compare(parent_window, parent_node); | 305 Compare(parent_window, parent_node); |
| 305 Compare(child_window, child_node); | 306 Compare(child_window, child_node); |
| 306 parent_window->StackChildAbove(child_window, target_window); | 307 parent_window->StackChildAbove(child_window, target_window); |
| 307 ExpectChildNodeRemoved(parent_id, child_node->getNodeId()); | 308 ExpectChildNodeRemoved(parent_id, child_node->getNodeId()); |
| 308 ExpectChildNodeInserted(parent_id, sibling_node->getNodeId()); | 309 ExpectChildNodeInserted(parent_id, sibling_node->getNodeId()); |
| 309 } | 310 } |
| 310 | 311 |
| 311 } // namespace ash | 312 } // namespace ash |
| OLD | NEW |