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

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

Issue 940033003: Cleanup iOS upstreamed code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dom_distiller
Patch Set: Rebase Created 5 years, 10 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
« no previous file with comments | « ios/public/consumer/base/util.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 12
14 namespace { 13 namespace {
15 14
16 typedef testing::Test SkiaUtilsIosTest; 15 typedef testing::Test SkiaUtilsIosTest;
17 16
18 // This is a base64 encoded version of google.com ico file. generated by 17 // This is a base64 encoded version of google.com ico file. generated by
19 // curl http://www.google.com/favicon.ico | base64 -b 76 18 // curl http://www.google.com/favicon.ico | base64 -b 76
20 const char kIcoEncodedData[] = 19 const char kIcoEncodedData[] =
21 "AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAACAAAAABACAAAAAA" 20 "AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAACAAAAABACAAAAAA"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 } 150 }
152 151
153 TEST_F(SkiaUtilsIosTest, EmptyDataFailure) { 152 TEST_F(SkiaUtilsIosTest, EmptyDataFailure) {
154 std::vector<SkBitmap> bitmaps(gfx::ImageDataToSkBitmaps([NSData data])); 153 std::vector<SkBitmap> bitmaps(gfx::ImageDataToSkBitmaps([NSData data]));
155 154
156 EXPECT_EQ(0UL, bitmaps.size()); 155 EXPECT_EQ(0UL, bitmaps.size());
157 } 156 }
158 157
159 } // namespace 158 } // namespace
160 159
OLDNEW
« no previous file with comments | « ios/public/consumer/base/util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698