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

Side by Side Diff: components/mus/server_view_drawn_tracker_unittest.cc

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 months 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/view_manager/server_view_drawn_tracker.h" 5 #include "components/mus/server_view_drawn_tracker.h"
6 6
7 #include "components/view_manager/server_view.h" 7 #include "components/mus/server_view.h"
8 #include "components/view_manager/server_view_drawn_tracker_observer.h" 8 #include "components/mus/server_view_drawn_tracker_observer.h"
9 #include "components/view_manager/test_server_view_delegate.h" 9 #include "components/mus/test_server_view_delegate.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace view_manager { 12 namespace view_manager {
13 namespace { 13 namespace {
14 14
15 class TestServerViewDrawnTrackerObserver 15 class TestServerViewDrawnTrackerObserver
16 : public ServerViewDrawnTrackerObserver { 16 : public ServerViewDrawnTrackerObserver {
17 public: 17 public:
18 TestServerViewDrawnTrackerObserver() 18 TestServerViewDrawnTrackerObserver()
19 : change_count_(0u), 19 : change_count_(0u),
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 drawn_observer.clear_change_count(); 130 drawn_observer.clear_change_count();
131 131
132 root.Add(&child_child); 132 root.Add(&child_child);
133 EXPECT_EQ(1u, drawn_observer.change_count()); 133 EXPECT_EQ(1u, drawn_observer.change_count());
134 EXPECT_EQ(&child_child, drawn_observer.view()); 134 EXPECT_EQ(&child_child, drawn_observer.view());
135 EXPECT_EQ(nullptr, drawn_observer.ancestor()); 135 EXPECT_EQ(nullptr, drawn_observer.ancestor());
136 EXPECT_TRUE(drawn_observer.is_drawn()); 136 EXPECT_TRUE(drawn_observer.is_drawn());
137 } 137 }
138 138
139 } // namespace view_manager 139 } // namespace view_manager
OLDNEW
« no previous file with comments | « components/mus/server_view_drawn_tracker_observer.h ('k') | components/mus/server_view_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698