OLD | NEW |
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 <fstream> | 5 #include <fstream> |
6 #include <iostream> | 6 #include <ostream> |
7 | 7 |
8 #if defined(USE_SYSTEM_ZLIB) | 8 #if defined(USE_SYSTEM_ZLIB) |
9 #include <zlib.h> | 9 #include <zlib.h> |
10 #else | 10 #else |
11 #include "third_party/zlib/zlib.h" | 11 #include "third_party/zlib/zlib.h" |
12 #endif | 12 #endif |
13 | 13 |
14 #include "base/file_util.h" | 14 #include "base/file_util.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 int corrupt_decode_size = kDefaultBufferSize; | 388 int corrupt_decode_size = kDefaultBufferSize; |
389 | 389 |
390 int code = DecodeAllWithFilter(filter_.get(), corrupt_data, corrupt_data_len, | 390 int code = DecodeAllWithFilter(filter_.get(), corrupt_data, corrupt_data_len, |
391 corrupt_decode_buffer, &corrupt_decode_size); | 391 corrupt_decode_buffer, &corrupt_decode_size); |
392 | 392 |
393 // Expect failures | 393 // Expect failures |
394 EXPECT_TRUE(code == Filter::FILTER_ERROR); | 394 EXPECT_TRUE(code == Filter::FILTER_ERROR); |
395 } | 395 } |
396 | 396 |
397 } // namespace net | 397 } // namespace net |
OLD | NEW |