| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "content/test/image_decoder_test.h" | 5 #include "content/test/image_decoder_test.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | |
| 8 #include "base/files/file_enumerator.h" | 7 #include "base/files/file_enumerator.h" |
| 9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" |
| 10 #include "base/md5.h" | 10 #include "base/md5.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "third_party/WebKit/public/platform/WebData.h" | 15 #include "third_party/WebKit/public/platform/WebData.h" |
| 16 #include "third_party/WebKit/public/platform/WebImage.h" | 16 #include "third_party/WebKit/public/platform/WebImage.h" |
| 17 #include "third_party/WebKit/public/platform/WebSize.h" | 17 #include "third_party/WebKit/public/platform/WebSize.h" |
| 18 #include "third_party/WebKit/public/web/WebImageDecoder.h" | 18 #include "third_party/WebKit/public/web/WebImageDecoder.h" |
| 19 | 19 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 EXPECT_TRUE(decoder->isFailed()); | 201 EXPECT_TRUE(decoder->isFailed()); |
| 202 } else { | 202 } else { |
| 203 EXPECT_FALSE(decoder->isFailed()) << image_path.value(); | 203 EXPECT_FALSE(decoder->isFailed()) << image_path.value(); |
| 204 #if defined(CALCULATE_MD5_SUMS) | 204 #if defined(CALCULATE_MD5_SUMS) |
| 205 SaveMD5Sum(md5_sum_path, decoder->getFrameAtIndex(desired_frame_index)); | 205 SaveMD5Sum(md5_sum_path, decoder->getFrameAtIndex(desired_frame_index)); |
| 206 #else | 206 #else |
| 207 VerifyImage(*decoder, image_path, md5_sum_path, desired_frame_index); | 207 VerifyImage(*decoder, image_path, md5_sum_path, desired_frame_index); |
| 208 #endif | 208 #endif |
| 209 } | 209 } |
| 210 } | 210 } |
| OLD | NEW |