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

Side by Side Diff: components/webp_transcode/webp_decoder_unittest.mm

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "components/webp_transcode/webp_decoder.h" 5 #include "components/webp_transcode/webp_decoder.h"
6 6
7 #import <CoreGraphics/CoreGraphics.h> 7 #import <CoreGraphics/CoreGraphics.h>
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include <stddef.h>
10 #include <stdint.h>
9 11
10 #include "base/base_paths.h" 12 #include "base/base_paths.h"
11 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
12 #include "base/ios/ios_util.h" 14 #include "base/ios/ios_util.h"
13 #include "base/logging.h" 15 #include "base/logging.h"
14 #include "base/mac/scoped_cftyperef.h" 16 #include "base/mac/scoped_cftyperef.h"
15 #include "base/mac/scoped_nsobject.h" 17 #include "base/mac/scoped_nsobject.h"
18 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
17 #include "base/path_service.h" 20 #include "base/path_service.h"
18 #include "base/strings/sys_string_conversions.h" 21 #include "base/strings/sys_string_conversions.h"
22 #include "build/build_config.h"
19 #include "testing/gmock/include/gmock/gmock.h" 23 #include "testing/gmock/include/gmock/gmock.h"
20 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
21 25
22 namespace webp_transcode { 26 namespace webp_transcode {
23 namespace { 27 namespace {
24 28
25 class WebpDecoderDelegate : public WebpDecoder::Delegate { 29 class WebpDecoderDelegate : public WebpDecoder::Delegate {
26 public: 30 public:
27 WebpDecoderDelegate() : image_([[NSMutableData alloc] init]) {} 31 WebpDecoderDelegate() : image_([[NSMutableData alloc] init]) {}
28 32
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 EXPECT_EQ(0u, [delegate_->GetImage() length]); 280 EXPECT_EQ(0u, [delegate_->GetImage() length]);
277 } 281 }
278 282
279 TEST_F(WebpDecoderTest, DecodeAborted) { 283 TEST_F(WebpDecoderTest, DecodeAborted) {
280 EXPECT_CALL(*delegate_, OnFinishedDecoding(false)).Times(1); 284 EXPECT_CALL(*delegate_, OnFinishedDecoding(false)).Times(1);
281 decoder_->Stop(); 285 decoder_->Stop();
282 EXPECT_EQ(0u, [delegate_->GetImage() length]); 286 EXPECT_EQ(0u, [delegate_->GetImage() length]);
283 } 287 }
284 288
285 } // namespace webp_transcode 289 } // namespace webp_transcode
OLDNEW
« no previous file with comments | « components/webp_transcode/webp_decoder.mm ('k') | components/webp_transcode/webp_network_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698