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

Side by Side Diff: chrome/browser/thumbnails/content_based_thumbnailing_algorithm_unittest.cc

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/macros.h"
5 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
6 #include "chrome/browser/thumbnails/content_based_thumbnailing_algorithm.h" 7 #include "chrome/browser/thumbnails/content_based_thumbnailing_algorithm.h"
7 #include "chrome/browser/thumbnails/simple_thumbnail_crop.h" 8 #include "chrome/browser/thumbnails/simple_thumbnail_crop.h"
8 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
9 #include "content/public/test/test_browser_thread.h" 10 #include "content/public/test/test_browser_thread.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
12 #include "ui/gfx/canvas.h" 13 #include "ui/gfx/canvas.h"
13 #include "ui/gfx/scrollbar_size.h" 14 #include "ui/gfx/scrollbar_size.h"
14 15
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 base::Unretained(&catcher))); 158 base::Unretained(&catcher)));
158 message_loop.RunUntilIdle(); 159 message_loop.RunUntilIdle();
159 ASSERT_TRUE(catcher.called_back()); 160 ASSERT_TRUE(catcher.called_back());
160 EXPECT_TRUE(catcher.score().good_clipping); 161 EXPECT_TRUE(catcher.score().good_clipping);
161 EXPECT_FALSE(catcher.captured_bitmap().empty()); 162 EXPECT_FALSE(catcher.captured_bitmap().empty());
162 EXPECT_LT(catcher.captured_bitmap().width(), source.width()); 163 EXPECT_LT(catcher.captured_bitmap().width(), source.width());
163 EXPECT_LT(catcher.captured_bitmap().height(), source.height()); 164 EXPECT_LT(catcher.captured_bitmap().height(), source.height());
164 } 165 }
165 166
166 } // namespace thumbnails 167 } // namespace thumbnails
OLDNEW
« no previous file with comments | « chrome/browser/thumbnails/content_based_thumbnailing_algorithm.cc ('k') | chrome/browser/thumbnails/simple_thumbnail_crop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698