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

Side by Side Diff: extensions/common/image_util_unittest.cc

Issue 782693002: Ensure there are always nice icons for bookmark apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac compile Created 6 years 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 | « extensions/common/image_util.cc ('k') | extensions/common/manifest_constants.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <string> 5 #include <string>
6 6
7 #include "extensions/browser/image_util.h" 7 #include "extensions/common/image_util.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 void RunPassTest(const std::string& css_string, SkColor expected_result) { 13 void RunPassTest(const std::string& css_string, SkColor expected_result) {
14 SkColor color = 0; 14 SkColor color = 0;
15 EXPECT_TRUE(image_util::ParseCSSColorString(css_string, &color)); 15 EXPECT_TRUE(image_util::ParseCSSColorString(css_string, &color));
16 EXPECT_EQ(color, expected_result); 16 EXPECT_EQ(color, expected_result);
17 } 17 }
(...skipping 25 matching lines...) Expand all
43 43
44 TEST(ImageUtilTest, ChangeBadgeBackgroundCSSInvalid) { 44 TEST(ImageUtilTest, ChangeBadgeBackgroundCSSInvalid) {
45 RunFailTest("#-22128"); 45 RunFailTest("#-22128");
46 } 46 }
47 47
48 TEST(ImageUtilTest, ChangeBadgeBackgroundCSSInvalidWithPlus) { 48 TEST(ImageUtilTest, ChangeBadgeBackgroundCSSInvalidWithPlus) {
49 RunFailTest("#+22128"); 49 RunFailTest("#+22128");
50 } 50 }
51 51
52 } // namespace extensions 52 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/image_util.cc ('k') | extensions/common/manifest_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698