Chromium Code Reviews

Side by Side Diff: skia/ext/skia_utils_ios_unittest.mm

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 "skia/ext/skia_utils_ios.h" 5 #include "skia/ext/skia_utils_ios.h"
6 6
7 #import <ImageIO/ImageIO.h> 7 #import <ImageIO/ImageIO.h>
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
11 #include "base/ios/ios_util.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 namespace { 14 namespace {
14 15
15 typedef testing::Test SkiaUtilsIosTest; 16 typedef testing::Test SkiaUtilsIosTest;
16 17
17 // This is a base64 encoded version of google.com ico file. generated by 18 // This is a base64 encoded version of google.com ico file. generated by
18 // curl http://www.google.com/favicon.ico | base64 -b 76 19 // curl http://www.google.com/favicon.ico | base64 -b 76
19 const char kIcoEncodedData[] = 20 const char kIcoEncodedData[] =
20 "AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAACAAAAABACAAAAAA" 21 "AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAACAAAAABACAAAAAA"
(...skipping 129 matching lines...)
150 } 151 }
151 152
152 TEST_F(SkiaUtilsIosTest, EmptyDataFailure) { 153 TEST_F(SkiaUtilsIosTest, EmptyDataFailure) {
153 std::vector<SkBitmap> bitmaps(gfx::ImageDataToSkBitmaps([NSData data])); 154 std::vector<SkBitmap> bitmaps(gfx::ImageDataToSkBitmaps([NSData data]));
154 155
155 EXPECT_EQ(0UL, bitmaps.size()); 156 EXPECT_EQ(0UL, bitmaps.size());
156 } 157 }
157 158
158 } // namespace 159 } // namespace
159 160
OLDNEW

Powered by Google App Engine