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

Side by Side Diff: webkit/tools/test_shell/image_decoder_unittest.cc

Issue 8787003: Update these includes to use the new header locations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/tools/test_shell/image_decoder_unittest.h" 5 #include "webkit/tools/test_shell/image_decoder_unittest.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/md5.h" 9 #include "base/md5.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebImage.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebImage.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebImageDecoder.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebImageDecoder.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h"
17 17
18 using base::Time; 18 using base::Time;
19 19
20 namespace { 20 namespace {
21 21
22 const int kFirstFrameIndex = 0; 22 const int kFirstFrameIndex = 0;
23 23
24 // Determine if we should test with file specified by |path| based 24 // Determine if we should test with file specified by |path| based
25 // on |file_selection| and the |threshold| for the file size. 25 // on |file_selection| and the |threshold| for the file size.
26 bool ShouldSkipFile(const FilePath& path, 26 bool ShouldSkipFile(const FilePath& path,
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // Since WebImage does not expose get data by frame, get the size 207 // Since WebImage does not expose get data by frame, get the size
208 // through decoder and pass it to fromData so that the closest 208 // through decoder and pass it to fromData so that the closest
209 // image dats to the size is returned. 209 // image dats to the size is returned.
210 WebKit::WebSize size(decoder->getImage(desired_frame_index).size()); 210 WebKit::WebSize size(decoder->getImage(desired_frame_index).size());
211 const WebKit::WebImage& image = WebKit::WebImage::fromData(data, size); 211 const WebKit::WebImage& image = WebKit::WebImage::fromData(data, size);
212 SaveMD5Sum(md5_sum_path.value(), image); 212 SaveMD5Sum(md5_sum_path.value(), image);
213 #else 213 #else
214 VerifyImage(*decoder, image_path, md5_sum_path, desired_frame_index); 214 VerifyImage(*decoder, image_path, md5_sum_path, desired_frame_index);
215 #endif 215 #endif
216 } 216 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/drop_delegate.cc ('k') | webkit/tools/test_shell/layout_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698