Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: mojo/services/view_manager/public/cpp/tests/view_unittest.cc

Issue 790623003: Restructure public side of view_manager service. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: BUILD.gn file reorderings Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/view.h" 5 #include "mojo/services/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/public/cpp/view_manager/lib/view_private.h" 9 #include "mojo/services/view_manager/public/cpp/lib/view_private.h"
10 #include "mojo/services/public/cpp/view_manager/util.h" 10 #include "mojo/services/view_manager/public/cpp/util.h"
11 #include "mojo/services/public/cpp/view_manager/view_observer.h" 11 #include "mojo/services/view_manager/public/cpp/view_observer.h"
12 #include "mojo/services/public/cpp/view_manager/view_property.h" 12 #include "mojo/services/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
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
OLDNEW
« no previous file with comments | « mojo/services/view_manager/public/cpp/tests/view_manager_unittest.cc ('k') | mojo/services/view_manager/public/cpp/types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698