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

Side by Side Diff: ios/chrome/browser/ui/uikit_ui_util_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/chrome/browser/snapshots/snapshot_cache.mm ('k') | ios/consumer/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #import "ios/chrome/browser/ui/uikit_ui_util.h" 5 #import "ios/chrome/browser/ui/uikit_ui_util.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/ios/ios_util.h"
9 #include "base/mac/scoped_nsobject.h" 8 #include "base/mac/scoped_nsobject.h"
10 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
11 #import "ios/chrome/browser/ui/ui_util.h" 10 #import "ios/chrome/browser/ui/ui_util.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 #import "third_party/ocmock/OCMock/OCMock.h" 12 #import "third_party/ocmock/OCMock/OCMock.h"
14 13
15 namespace { 14 namespace {
16 15
17 void ExpectInterpolatedColor(UIColor* firstColor, 16 void ExpectInterpolatedColor(UIColor* firstColor,
18 UIColor* secondColor, 17 UIColor* secondColor,
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 ASSERT_EQ(kCGColorSpaceModelMonochrome, 131 ASSERT_EQ(kCGColorSpaceModelMonochrome,
133 CGColorSpaceGetModel(CGColorGetColorSpace(black.CGColor))); 132 CGColorSpaceGetModel(CGColorGetColorSpace(black.CGColor)));
134 133
135 // Interpolate between monochrome and rgb. 134 // Interpolate between monochrome and rgb.
136 ExpectInterpolatedColor(black, rgb, 0.5, 0.1); 135 ExpectInterpolatedColor(black, rgb, 0.5, 0.1);
137 // Interpolate between two monochrome colors. 136 // Interpolate between two monochrome colors.
138 ExpectInterpolatedColor(black, white, 0.3, 0.3); 137 ExpectInterpolatedColor(black, white, 0.3, 0.3);
139 } 138 }
140 139
141 } // namespace 140 } // namespace
OLDNEW
« no previous file with comments | « ios/chrome/browser/snapshots/snapshot_cache.mm ('k') | ios/consumer/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698