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

Side by Side Diff: ui/gfx/icon_util_unittest.cc

Issue 147803002: ui: Time to empty the ui/test/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/DEPS ('k') | ui/gfx/icon_util_unittests.rc » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/gfx/icon_util.h"
6
5 #include "base/file_util.h" 7 #include "base/file_util.h"
6 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
7 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
8 #include "base/path_service.h" 10 #include "base/path_service.h"
9 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
11 #include "ui/gfx/gfx_paths.h" 13 #include "ui/gfx/gfx_paths.h"
12 #include "ui/gfx/icon_util.h" 14 #include "ui/gfx/icon_util_unittests_resource.h"
13 #include "ui/gfx/image/image.h" 15 #include "ui/gfx/image/image.h"
14 #include "ui/gfx/image/image_family.h" 16 #include "ui/gfx/image/image_family.h"
15 #include "ui/gfx/size.h" 17 #include "ui/gfx/size.h"
16 #include "ui/test/ui_unittests_resource.h"
17 18
18 namespace { 19 namespace {
19 20
20 static const char kSmallIconName[] = "icon_util/16_X_16_icon.ico"; 21 static const char kSmallIconName[] = "icon_util/16_X_16_icon.ico";
21 static const char kLargeIconName[] = "icon_util/128_X_128_icon.ico"; 22 static const char kLargeIconName[] = "icon_util/128_X_128_icon.ico";
22 static const char kTempIconFilename[] = "temp_test_icon.ico"; 23 static const char kTempIconFilename[] = "temp_test_icon.ico";
23 24
24 } // namespace 25 } // namespace
25 26
26 class IconUtilTest : public testing::Test { 27 class IconUtilTest : public testing::Test {
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 } 427 }
427 428
428 // This tests that kNumIconDimensionsUpToMediumSize has the correct value. 429 // This tests that kNumIconDimensionsUpToMediumSize has the correct value.
429 TEST_F(IconUtilTest, TestNumIconDimensionsUpToMediumSize) { 430 TEST_F(IconUtilTest, TestNumIconDimensionsUpToMediumSize) {
430 ASSERT_LE(IconUtil::kNumIconDimensionsUpToMediumSize, 431 ASSERT_LE(IconUtil::kNumIconDimensionsUpToMediumSize,
431 IconUtil::kNumIconDimensions); 432 IconUtil::kNumIconDimensions);
432 EXPECT_EQ(IconUtil::kMediumIconSize, 433 EXPECT_EQ(IconUtil::kMediumIconSize,
433 IconUtil::kIconDimensions[ 434 IconUtil::kIconDimensions[
434 IconUtil::kNumIconDimensionsUpToMediumSize - 1]); 435 IconUtil::kNumIconDimensionsUpToMediumSize - 1]);
435 } 436 }
OLDNEW
« no previous file with comments | « ui/gfx/DEPS ('k') | ui/gfx/icon_util_unittests.rc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698