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

Side by Side Diff: xz/tests/test_block.c

Issue 2869016: Add an unpatched version of xz, XZ Utils, to /trunk/deps/third_party (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « xz/tests/files/unsupported-filter_flags-3.xz ('k') | xz/tests/test_block_header.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file test_block.c
4 /// \brief Tests Block coders
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
10 //
11 ///////////////////////////////////////////////////////////////////////////////
12
13 #include "tests.h"
14
15
16 static uint8_t text[] = "Hello world!";
17 static uint8_t buffer[4096];
18 static lzma_options_block block_options;
19 static lzma_stream strm = LZMA_STREAM_INIT;
20
21
22 static void
23 test1(void)
24 {
25
26 }
27
28
29 int
30 main()
31 {
32 lzma_init();
33
34 block_options = (lzma_options_block){
35 .check_type = LZMA_CHECK_NONE,
36 .has_eopm = true,
37 .has_uncompressed_size_in_footer = false,
38 .has_backward_size = false,
39 .handle_padding = false,
40 .total_size = LZMA_VLI_UNKNOWN,
41 .compressed_size = LZMA_VLI_UNKNOWN,
42 .uncompressed_size = LZMA_VLI_UNKNOWN,
43 .header_size = 5,
44 };
45 block_options.filters[0].id = LZMA_VLI_UNKNOWN;
46 block_options.filters[0].options = NULL;
47
48
49 lzma_end(&strm);
50
51 return 0;
52 }
OLDNEW
« no previous file with comments | « xz/tests/files/unsupported-filter_flags-3.xz ('k') | xz/tests/test_block_header.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698