| OLD | NEW | 
|---|
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|