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

Side by Side Diff: ui/gfx/shadow_value_unittest.cc

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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/insets.h" 7 #include "ui/gfx/geometry/insets.h"
8 #include "ui/gfx/shadow_value.h" 8 #include "ui/gfx/shadow_value.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 11
12 TEST(ShadowValueTest, GetMargin) { 12 TEST(ShadowValueTest, GetMargin) {
13 const struct TestCase { 13 const struct TestCase {
14 Insets expected_margin; 14 Insets expected_margin;
15 size_t shadow_count; 15 size_t shadow_count;
16 ShadowValue shadows[2]; 16 ShadowValue shadows[2];
17 } kTestCases[] = { 17 } kTestCases[] = {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { 54 for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
55 Insets margin = ShadowValue::GetMargin( 55 Insets margin = ShadowValue::GetMargin(
56 ShadowValues(kTestCases[i].shadows, 56 ShadowValues(kTestCases[i].shadows,
57 kTestCases[i].shadows + kTestCases[i].shadow_count)); 57 kTestCases[i].shadows + kTestCases[i].shadow_count));
58 58
59 EXPECT_EQ(kTestCases[i].expected_margin, margin) << " i=" << i; 59 EXPECT_EQ(kTestCases[i].expected_margin, margin) << " i=" << i;
60 } 60 }
61 } 61 }
62 62
63 } // namespace gfx 63 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698