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

Side by Side Diff: content/test/image_decoder_test.h

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « content/test/accessibility_browser_test_utils.cc ('k') | content/test/image_decoder_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CONTENT_TEST_IMAGE_DECODER_TEST_H_ 5 #ifndef CONTENT_TEST_IMAGE_DECODER_TEST_H_
6 #define CONTENT_TEST_IMAGE_DECODER_TEST_H_ 6 #define CONTENT_TEST_IMAGE_DECODER_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 14
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace WebKit { class WebImageDecoder; } 17 namespace blink { class WebImageDecoder; }
18 18
19 // If CALCULATE_MD5_SUMS is not defined, then this test decodes a handful of 19 // If CALCULATE_MD5_SUMS is not defined, then this test decodes a handful of
20 // image files and compares their MD5 sums to the stored sums on disk. 20 // image files and compares their MD5 sums to the stored sums on disk.
21 // 21 //
22 // To recalculate the MD5 sums, uncommment CALCULATE_MD5_SUMS. 22 // To recalculate the MD5 sums, uncommment CALCULATE_MD5_SUMS.
23 // 23 //
24 // The image files and corresponding MD5 sums live in the directory 24 // The image files and corresponding MD5 sums live in the directory
25 // chrome/test/data/*_decoder (where "*" is the format being tested). 25 // chrome/test/data/*_decoder (where "*" is the format being tested).
26 // 26 //
27 // Note: The MD5 sums calculated in this test by little- and big-endian systems 27 // Note: The MD5 sums calculated in this test by little- and big-endian systems
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // files to test based on file size. 63 // files to test based on file size.
64 // If just the MD5 sum is wanted, this skips chunking. 64 // If just the MD5 sum is wanted, this skips chunking.
65 void TestDecoding(ImageDecoderTestFileSelection file_selection, 65 void TestDecoding(ImageDecoderTestFileSelection file_selection,
66 const int64 threshold); 66 const int64 threshold);
67 67
68 void TestDecoding() { 68 void TestDecoding() {
69 TestDecoding(TEST_ALL, 0); 69 TestDecoding(TEST_ALL, 0);
70 } 70 }
71 71
72 // Creates WebKit API's decoder. 72 // Creates WebKit API's decoder.
73 virtual WebKit::WebImageDecoder* CreateWebKitImageDecoder() const = 0; 73 virtual blink::WebImageDecoder* CreateWebKitImageDecoder() const = 0;
74 74
75 // The format to be decoded, like "bmp" or "ico". 75 // The format to be decoded, like "bmp" or "ico".
76 std::string format_; 76 std::string format_;
77 77
78 protected: 78 protected:
79 // Path to the test files. 79 // Path to the test files.
80 base::FilePath data_dir_; 80 base::FilePath data_dir_;
81 81
82 private: 82 private:
83 DISALLOW_COPY_AND_ASSIGN(ImageDecoderTest); 83 DISALLOW_COPY_AND_ASSIGN(ImageDecoderTest);
84 }; 84 };
85 85
86 #endif // CONTENT_TEST_IMAGE_DECODER_TEST_H_ 86 #endif // CONTENT_TEST_IMAGE_DECODER_TEST_H_
OLDNEW
« no previous file with comments | « content/test/accessibility_browser_test_utils.cc ('k') | content/test/image_decoder_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698