| Index: chrome/browser/thumbnails/content_based_thumbnailing_algorithm_unittest.cc
|
| diff --git a/chrome/browser/thumbnails/content_based_thumbnailing_algorithm_unittest.cc b/chrome/browser/thumbnails/content_based_thumbnailing_algorithm_unittest.cc
|
| index df60a22c272296589d44da1b64b77fb2dbb096b3..2fa7ccd3bf377823b9c13022d159c72ace0e8212 100644
|
| --- a/chrome/browser/thumbnails/content_based_thumbnailing_algorithm_unittest.cc
|
| +++ b/chrome/browser/thumbnails/content_based_thumbnailing_algorithm_unittest.cc
|
| @@ -26,8 +26,8 @@
|
| const SkBitmap& bitmap) {
|
| called_back_ = true;
|
| captured_bitmap_ = bitmap;
|
| - clip_result_ = context.clip_result();
|
| - score_ = context.score();
|
| + clip_result_ = context.clip_result;
|
| + score_ = context.score;
|
| }
|
|
|
| bool called_back() const {
|
| @@ -100,7 +100,7 @@
|
| const gfx::Size copy_size(400, 200);
|
| scoped_refptr<ThumbnailingContext> context(
|
| ThumbnailingContext::CreateThumbnailingContextForTest());
|
| - context->set_requested_copy_size(copy_size);
|
| + context->requested_copy_size = copy_size;
|
|
|
| // This calls for exercising two distinct paths: with prior clipping and
|
| // without.
|
| @@ -109,7 +109,7 @@
|
| source.eraseARGB(255, 50, 150, 200);
|
| SkBitmap result = ContentBasedThumbnailingAlgorithm::PrepareSourceBitmap(
|
| source, thumbnail_size, context.get());
|
| - EXPECT_EQ(CLIP_RESULT_SOURCE_SAME_AS_TARGET, context->clip_result());
|
| + EXPECT_EQ(CLIP_RESULT_SOURCE_SAME_AS_TARGET, context->clip_result);
|
| EXPECT_GE(result.width(), copy_size.width());
|
| EXPECT_GE(result.height(), copy_size.height());
|
| EXPECT_LT(result.width(), source.width());
|
| @@ -122,7 +122,7 @@
|
|
|
| result = ContentBasedThumbnailingAlgorithm::PrepareSourceBitmap(
|
| source, thumbnail_size, context.get());
|
| - EXPECT_EQ(CLIP_RESULT_SOURCE_SAME_AS_TARGET, context->clip_result());
|
| + EXPECT_EQ(CLIP_RESULT_SOURCE_SAME_AS_TARGET, context->clip_result);
|
| EXPECT_GE(result.width(), copy_size.width());
|
| EXPECT_GE(result.height(), copy_size.height());
|
| EXPECT_LT(result.width(), source.width());
|
| @@ -143,8 +143,8 @@
|
| const gfx::Size thumbnail_size(432, 284);
|
| scoped_refptr<ThumbnailingContext> context(
|
| ThumbnailingContext::CreateThumbnailingContextForTest());
|
| - context->set_requested_copy_size(image_size);
|
| - context->set_clip_result(CLIP_RESULT_SOURCE_SAME_AS_TARGET);
|
| + context->requested_copy_size = image_size;
|
| + context->clip_result = CLIP_RESULT_SOURCE_SAME_AS_TARGET;
|
|
|
| base::MessageLoopForUI message_loop;
|
| content::TestBrowserThread ui_thread(content::BrowserThread::UI,
|
|
|