| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |