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

Side by Side Diff: ui/gfx/test/gfx_util.h

Issue 392013005: [#1] Delete reduntdant 19 header files in ui/gfx (8 of 19 by this) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sorted includes Created 6 years, 5 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 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 #ifndef UI_GFX_TEST_GFX_UTIL_H_ 5 #ifndef UI_GFX_TEST_GFX_UTIL_H_
6 #define UI_GFX_TEST_GFX_UTIL_H_ 6 #define UI_GFX_TEST_GFX_UTIL_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <string> 9 #include <string>
10 10
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "third_party/skia/include/core/SkColor.h" 12 #include "third_party/skia/include/core/SkColor.h"
13 #include "ui/gfx/box_f.h" 13 #include "ui/gfx/geometry/box_f.h"
14 #include "ui/gfx/geometry/rect_f.h" 14 #include "ui/gfx/geometry/rect_f.h"
15 15
16 namespace gfx { 16 namespace gfx {
17 17
18 // Checks that the box coordinates are each almost equal floats. 18 // Checks that the box coordinates are each almost equal floats.
19 #define EXPECT_BOXF_EQ(a, b) \ 19 #define EXPECT_BOXF_EQ(a, b) \
20 EXPECT_PRED_FORMAT2(::gfx::AssertBoxFloatEqual, a, b) 20 EXPECT_PRED_FORMAT2(::gfx::AssertBoxFloatEqual, a, b)
21 21
22 ::testing::AssertionResult AssertBoxFloatEqual(const char* lhs_expr, 22 ::testing::AssertionResult AssertBoxFloatEqual(const char* lhs_expr,
23 const char* rhs_expr, 23 const char* rhs_expr,
(...skipping 12 matching lines...) Expand all
36 EXPECT_PRED_FORMAT2(::gfx::AssertSkColorsEqual, a, b) 36 EXPECT_PRED_FORMAT2(::gfx::AssertSkColorsEqual, a, b)
37 37
38 ::testing::AssertionResult AssertSkColorsEqual(const char* lhs_expr, 38 ::testing::AssertionResult AssertSkColorsEqual(const char* lhs_expr,
39 const char* rhs_expr, 39 const char* rhs_expr,
40 SkColor lhs, 40 SkColor lhs,
41 SkColor rhs); 41 SkColor rhs);
42 42
43 } // namespace gfx 43 } // namespace gfx
44 44
45 #endif // UI_GFX_TEST_GFX_UTIL_H_ 45 #endif // UI_GFX_TEST_GFX_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698