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

Unified Diff: ios/chrome/browser/webp_transcode/webp_decoder_unittest.mm

Issue 2146833002: Move webp_transcode to ios/chrome/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup DEPS Created 4 years, 5 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
« no previous file with comments | « ios/chrome/browser/webp_transcode/webp_decoder.mm ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()));
« no previous file with comments | « ios/chrome/browser/webp_transcode/webp_decoder.mm ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698