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

Unified Diff: ios/chrome/browser/suggestions/ios_image_decoder_impl_unittest.mm

Issue 2715153006: Set desired_image_size when decoding images for NTP Tile icons. (Closed)
Patch Set: comment formatting Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/suggestions/ios_image_decoder_impl_unittest.mm
diff --git a/ios/chrome/browser/suggestions/ios_image_decoder_impl_unittest.mm b/ios/chrome/browser/suggestions/ios_image_decoder_impl_unittest.mm
index d7115b772fe2bad0451ffbdd0738829af8f58b49..2cb03e981dab70d4a0d2cde3a3a14b0735d7d562 100644
--- a/ios/chrome/browser/suggestions/ios_image_decoder_impl_unittest.mm
+++ b/ios/chrome/browser/suggestions/ios_image_decoder_impl_unittest.mm
@@ -13,6 +13,7 @@
#include "base/threading/thread_task_runner_handle.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
+#include "ui/gfx/geometry/size.h"
#include "ui/gfx/image/image.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
@@ -82,8 +83,9 @@ TEST_F(IOSImageDecoderImplTest, JPGImage) {
std::string image_data =
std::string(reinterpret_cast<char*>(kJPGImage), sizeof(kJPGImage));
ios_image_decoder_impl_->DecodeImage(
- image_data, base::Bind(&IOSImageDecoderImplTest::OnImageDecoded,
- base::Unretained(this)));
+ image_data, gfx::Size(),
+ base::Bind(&IOSImageDecoderImplTest::OnImageDecoded,
+ base::Unretained(this)));
pool_->FlushForTesting();
base::RunLoop().RunUntilIdle();
@@ -97,8 +99,9 @@ TEST_F(IOSImageDecoderImplTest, WebpImage) {
std::string image_data =
std::string(reinterpret_cast<char*>(kWEBPImage), sizeof(kWEBPImage));
ios_image_decoder_impl_->DecodeImage(
- image_data, base::Bind(&IOSImageDecoderImplTest::OnImageDecoded,
- base::Unretained(this)));
+ image_data, gfx::Size(),
+ base::Bind(&IOSImageDecoderImplTest::OnImageDecoded,
+ base::Unretained(this)));
pool_->FlushForTesting();
base::RunLoop().RunUntilIdle();
« no previous file with comments | « ios/chrome/browser/suggestions/ios_image_decoder_impl.mm ('k') | services/image_decoder/image_decoder_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698