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

Side by Side Diff: ui/aura_shell/launcher/view_model_unittest.cc

Issue 8742030: views: Move view.h to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and fix conflicts Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura_shell/launcher/view_model.cc ('k') | ui/aura_shell/launcher/view_model_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/aura_shell/launcher/view_model.h" 5 #include "ui/aura_shell/launcher/view_model.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "views/view.h" 8 #include "ui/views/view.h"
9 9
10 namespace aura_shell { 10 namespace aura_shell {
11 11
12 TEST(ViewModel, BasicAssertions) { 12 TEST(ViewModel, BasicAssertions) {
13 views::View v1; 13 views::View v1;
14 ViewModel model; 14 ViewModel model;
15 model.Add(&v1, 0); 15 model.Add(&v1, 0);
16 EXPECT_EQ(1, model.view_size()); 16 EXPECT_EQ(1, model.view_size());
17 EXPECT_EQ(&v1, model.view_at(0)); 17 EXPECT_EQ(&v1, model.view_at(0));
18 gfx::Rect v1_bounds(1, 2, 3, 4); 18 gfx::Rect v1_bounds(1, 2, 3, 4);
(...skipping 13 matching lines...) Expand all
32 EXPECT_EQ(&v2, model.view_at(0)); 32 EXPECT_EQ(&v2, model.view_at(0));
33 EXPECT_EQ(&v3, model.view_at(1)); 33 EXPECT_EQ(&v3, model.view_at(1));
34 34
35 model.Move(2, 0); 35 model.Move(2, 0);
36 EXPECT_EQ(&v1, model.view_at(0)); 36 EXPECT_EQ(&v1, model.view_at(0));
37 EXPECT_EQ(&v2, model.view_at(1)); 37 EXPECT_EQ(&v2, model.view_at(1));
38 EXPECT_EQ(&v3, model.view_at(2)); 38 EXPECT_EQ(&v3, model.view_at(2));
39 } 39 }
40 40
41 } // namespace aura_shell 41 } // namespace aura_shell
OLDNEW
« no previous file with comments | « ui/aura_shell/launcher/view_model.cc ('k') | ui/aura_shell/launcher/view_model_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698