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

Unified Diff: ui/gfx/shadow_value_unittest.cc

Issue 10453035: Clean up SkBitmapOperations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/shadow_value.cc ('k') | ui/gfx/skbitmap_operations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/shadow_value_unittest.cc
diff --git a/ui/gfx/shadow_value_unittest.cc b/ui/gfx/shadow_value_unittest.cc
index 8c30b2bd4a01dd228da3f6954311c83dbf794d9f..57515dc7075693b14b29e218462bbb894755e964 100644
--- a/ui/gfx/shadow_value_unittest.cc
+++ b/ui/gfx/shadow_value_unittest.cc
@@ -52,11 +52,9 @@ TEST(ShadowValueTest, GetMargin) {
};
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) {
- std::vector<ShadowValue> shadows(
- &kTestCases[i].shadows[0],
- &kTestCases[i].shadows[kTestCases[i].shadow_count]);
-
- Insets margin = ShadowValue::GetMargin(shadows);
+ Insets margin = ShadowValue::GetMargin(
+ ShadowValues(kTestCases[i].shadows,
+ kTestCases[i].shadows + kTestCases[i].shadow_count));
EXPECT_EQ(kTestCases[i].expected_margin, margin) << " i=" << i;
}
« no previous file with comments | « ui/gfx/shadow_value.cc ('k') | ui/gfx/skbitmap_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698