| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/services/public/cpp/view_manager/node.h" | 5 #include "mojo/services/public/cpp/view_manager/node.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "mojo/services/public/cpp/view_manager/lib/node_private.h" | 9 #include "mojo/services/public/cpp/view_manager/lib/node_private.h" |
| 10 #include "mojo/services/public/cpp/view_manager/node_observer.h" | 10 #include "mojo/services/public/cpp/view_manager/node_observer.h" |
| 11 #include "mojo/services/public/cpp/view_manager/util.h" | 11 #include "mojo/services/public/cpp/view_manager/util.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace mojo { | 14 namespace mojo { |
| 15 namespace view_manager { | |
| 16 | 15 |
| 17 // Node ------------------------------------------------------------------------ | 16 // Node ------------------------------------------------------------------------ |
| 18 | 17 |
| 19 typedef testing::Test NodeTest; | 18 typedef testing::Test NodeTest; |
| 20 | 19 |
| 21 // Subclass with public ctor/dtor. | 20 // Subclass with public ctor/dtor. |
| 22 class TestNode : public Node { | 21 class TestNode : public Node { |
| 23 public: | 22 public: |
| 24 TestNode() { | 23 TestNode() { |
| 25 NodePrivate(this).set_id(1); | 24 NodePrivate(this).set_id(1); |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 EXPECT_EQ(2U, changes.size()); | 534 EXPECT_EQ(2U, changes.size()); |
| 536 EXPECT_EQ( | 535 EXPECT_EQ( |
| 537 "node=0,1 old_bounds=0,0 0x0 new_bounds=0,0 100x100 phase=changing", | 536 "node=0,1 old_bounds=0,0 0x0 new_bounds=0,0 100x100 phase=changing", |
| 538 changes[0]); | 537 changes[0]); |
| 539 EXPECT_EQ( | 538 EXPECT_EQ( |
| 540 "node=0,1 old_bounds=0,0 0x0 new_bounds=0,0 100x100 phase=changed", | 539 "node=0,1 old_bounds=0,0 0x0 new_bounds=0,0 100x100 phase=changed", |
| 541 changes[1]); | 540 changes[1]); |
| 542 } | 541 } |
| 543 } | 542 } |
| 544 | 543 |
| 545 } // namespace view_manager | |
| 546 } // namespace mojo | 544 } // namespace mojo |
| OLD | NEW |