| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "codec_int.h" | 9 #include "codec_int.h" |
| 10 #include "testing/fx_string_testhelpers.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "../../../testing/fx_string_testhelpers.h" | |
| 12 | 12 |
| 13 static const OPJ_OFF_T kSkipError = static_cast<OPJ_OFF_T>(-1); | 13 static const OPJ_OFF_T kSkipError = static_cast<OPJ_OFF_T>(-1); |
| 14 static const OPJ_SIZE_T kReadError = static_cast<OPJ_SIZE_T>(-1); | 14 static const OPJ_SIZE_T kReadError = static_cast<OPJ_SIZE_T>(-1); |
| 15 static const OPJ_SIZE_T kWriteError = static_cast<OPJ_SIZE_T>(-1); | 15 static const OPJ_SIZE_T kWriteError = static_cast<OPJ_SIZE_T>(-1); |
| 16 | 16 |
| 17 static unsigned char stream_data[] = { | 17 static unsigned char stream_data[] = { |
| 18 0x00, 0x01, 0x02, 0x03, | 18 0x00, 0x01, 0x02, 0x03, |
| 19 0x84, 0x85, 0x86, 0x87, // Include some hi-bytes, too. | 19 0x84, 0x85, 0x86, 0x87, // Include some hi-bytes, too. |
| 20 }; | 20 }; |
| 21 | 21 |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 EXPECT_NE(img.comps[0].h, img.comps[1].h); | 533 EXPECT_NE(img.comps[0].h, img.comps[1].h); |
| 534 EXPECT_NE(img.comps[0].w, img.comps[2].w); | 534 EXPECT_NE(img.comps[0].w, img.comps[2].w); |
| 535 EXPECT_NE(img.comps[0].h, img.comps[2].h); | 535 EXPECT_NE(img.comps[0].h, img.comps[2].h); |
| 536 } | 536 } |
| 537 FX_Free(img.comps[0].data); | 537 FX_Free(img.comps[0].data); |
| 538 FX_Free(img.comps[1].data); | 538 FX_Free(img.comps[1].data); |
| 539 FX_Free(img.comps[2].data); | 539 FX_Free(img.comps[2].data); |
| 540 } | 540 } |
| 541 FX_Free(img.comps); | 541 FX_Free(img.comps); |
| 542 } | 542 } |
| OLD | NEW |