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

Side by Side Diff: ui/gfx/geometry/box_unittest.cc

Issue 109433013: Move geometric types to a separate, more lightweight target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 #include "ui/gfx/box_f.h" 7 #include "ui/gfx/geometry/box_f.h"
8 8
9 namespace gfx { 9 namespace gfx {
10 10
11 TEST(BoxTest, Constructors) { 11 TEST(BoxTest, Constructors) {
12 EXPECT_EQ(BoxF(0.f, 0.f, 0.f, 0.f, 0.f, 0.f).ToString(), 12 EXPECT_EQ(BoxF(0.f, 0.f, 0.f, 0.f, 0.f, 0.f).ToString(),
13 BoxF().ToString()); 13 BoxF().ToString());
14 EXPECT_EQ(BoxF(0.f, 0.f, 0.f, -3.f, -5.f, -7.f).ToString(), 14 EXPECT_EQ(BoxF(0.f, 0.f, 0.f, -3.f, -5.f, -7.f).ToString(),
15 BoxF().ToString()); 15 BoxF().ToString());
16 16
17 EXPECT_EQ(BoxF(0.f, 0.f, 0.f, 3.f, 5.f, 7.f).ToString(), 17 EXPECT_EQ(BoxF(0.f, 0.f, 0.f, 3.f, 5.f, 7.f).ToString(),
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 BoxF box2 = box1; 167 BoxF box2 = box1;
168 box2 += Vector3dF(0.f, 0.f, 0.f); 168 box2 += Vector3dF(0.f, 0.f, 0.f);
169 EXPECT_EQ(box1.ToString(), box2.ToString()); 169 EXPECT_EQ(box1.ToString(), box2.ToString());
170 170
171 box2 += Vector3dF(1.f, -2.f, -4.f); 171 box2 += Vector3dF(1.f, -2.f, -4.f);
172 EXPECT_EQ(BoxF(3.f, 1.f, 0.f, 5.f, 6.f, 7.f).ToString(), 172 EXPECT_EQ(BoxF(3.f, 1.f, 0.f, 5.f, 6.f, 7.f).ToString(),
173 box2.ToString()); 173 box2.ToString());
174 } 174 }
175 175
176 } // namespace gfx 176 } // namespace gfx
OLDNEW
« ui/aura/aura.gyp ('K') | « ui/gfx/geometry/box_f.cc ('k') | ui/gfx/geometry/insets.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698