| Index: ios/chrome/browser/webp_transcode/webp_decoder_unittest.mm
|
| diff --git a/components/webp_transcode/webp_decoder_unittest.mm b/ios/chrome/browser/webp_transcode/webp_decoder_unittest.mm
|
| similarity index 97%
|
| rename from components/webp_transcode/webp_decoder_unittest.mm
|
| rename to ios/chrome/browser/webp_transcode/webp_decoder_unittest.mm
|
| index 5a82d0687961debe9118cd69f4b83b4679a1b342..8ea01d91217de905078c4fbe731cf2a524d8b35d 100644
|
| --- a/components/webp_transcode/webp_decoder_unittest.mm
|
| +++ b/ios/chrome/browser/webp_transcode/webp_decoder_unittest.mm
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "components/webp_transcode/webp_decoder.h"
|
| +#include "ios/chrome/browser/webp_transcode/webp_decoder.h"
|
|
|
| #import <CoreGraphics/CoreGraphics.h>
|
| #import <Foundation/Foundation.h>
|
| @@ -55,7 +55,7 @@ class WebpDecoderTest : public testing::Test {
|
| NSData* LoadImage(const base::FilePath& filename) {
|
| base::FilePath path;
|
| PathService::Get(base::DIR_SOURCE_ROOT, &path);
|
| - path = path.AppendASCII("components/test/data/webp_transcode")
|
| + path = path.AppendASCII("ios/chrome/test/data/webp_transcode")
|
| .Append(filename);
|
| return
|
| [NSData dataWithContentsOfFile:base::SysUTF8ToNSString(path.value())];
|
| @@ -227,8 +227,9 @@ TEST_F(WebpDecoderTest, DecodeToTiff) {
|
| ASSERT_TRUE(tiff_image != nil);
|
| // Convert to TIFF.
|
| EXPECT_CALL(*delegate_, OnFinishedDecoding(true)).Times(1);
|
| - EXPECT_CALL(*delegate_, SetImageFeatures([tiff_image length],
|
| - WebpDecoder::TIFF)).Times(1);
|
| + EXPECT_CALL(*delegate_,
|
| + SetImageFeatures([tiff_image length], WebpDecoder::TIFF))
|
| + .Times(1);
|
| decoder_->OnDataReceived(webp_image);
|
| // Compare to reference image.
|
| EXPECT_TRUE(CheckTiffImagesEqual(tiff_image, delegate_->GetImage()));
|
|
|