| 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/view_manager/public/cpp/view.h" | 5 #include "components/view_manager/public/cpp/view.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/view_manager/public/cpp/lib/view_private.h" | 9 #include "components/view_manager/public/cpp/lib/view_private.h" |
| 10 #include "mojo/services/view_manager/public/cpp/util.h" | 10 #include "components/view_manager/public/cpp/util.h" |
| 11 #include "mojo/services/view_manager/public/cpp/view_observer.h" | 11 #include "components/view_manager/public/cpp/view_observer.h" |
| 12 #include "mojo/services/view_manager/public/cpp/view_property.h" | 12 #include "components/view_manager/public/cpp/view_property.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace mojo { | 15 namespace mojo { |
| 16 | 16 |
| 17 // View ------------------------------------------------------------------------ | 17 // View ------------------------------------------------------------------------ |
| 18 | 18 |
| 19 typedef testing::Test ViewTest; | 19 typedef testing::Test ViewTest; |
| 20 | 20 |
| 21 // Subclass with public ctor/dtor. | 21 // Subclass with public ctor/dtor. |
| 22 class TestView : public View { | 22 class TestView : public View { |
| (...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 EXPECT_EQ(PropertyChangeInfo(&prop, -2), o.PropertyChangeInfoAndClear()); | 875 EXPECT_EQ(PropertyChangeInfo(&prop, -2), o.PropertyChangeInfoAndClear()); |
| 876 v1.ClearLocalProperty(&prop); | 876 v1.ClearLocalProperty(&prop); |
| 877 EXPECT_EQ(PropertyChangeInfo(&prop, 3), o.PropertyChangeInfoAndClear()); | 877 EXPECT_EQ(PropertyChangeInfo(&prop, 3), o.PropertyChangeInfoAndClear()); |
| 878 | 878 |
| 879 // Sanity check to see if |PropertyChangeInfoAndClear| really clears. | 879 // Sanity check to see if |PropertyChangeInfoAndClear| really clears. |
| 880 EXPECT_EQ(PropertyChangeInfo( | 880 EXPECT_EQ(PropertyChangeInfo( |
| 881 reinterpret_cast<const void*>(NULL), -3), o.PropertyChangeInfoAndClear()); | 881 reinterpret_cast<const void*>(NULL), -3), o.PropertyChangeInfoAndClear()); |
| 882 } | 882 } |
| 883 | 883 |
| 884 } // namespace mojo | 884 } // namespace mojo |
| OLD | NEW |