| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "update_engine/gzip.h" | 5 #include "update_engine/bzip.h" |
| 6 #include <stdlib.h> | 6 #include <stdlib.h> |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <bzlib.h> | 8 #include <bzlib.h> |
| 9 #include "update_engine/utils.h" | 9 #include "update_engine/utils.h" |
| 10 | 10 |
| 11 using std::max; | 11 using std::max; |
| 12 using std::string; | 12 using std::string; |
| 13 using std::vector; | 13 using std::vector; |
| 14 | 14 |
| 15 namespace chromeos_update_engine { | 15 namespace chromeos_update_engine { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 std::vector<char>* out) { | 107 std::vector<char>* out) { |
| 108 return BzipString<BzipData<BzipBuffToBuffCompress> >(str, out); | 108 return BzipString<BzipData<BzipBuffToBuffCompress> >(str, out); |
| 109 } | 109 } |
| 110 | 110 |
| 111 bool BzipDecompressString(const std::string& str, | 111 bool BzipDecompressString(const std::string& str, |
| 112 std::vector<char>* out) { | 112 std::vector<char>* out) { |
| 113 return BzipString<BzipData<BzipBuffToBuffDecompress> >(str, out); | 113 return BzipString<BzipData<BzipBuffToBuffDecompress> >(str, out); |
| 114 } | 114 } |
| 115 | 115 |
| 116 } // namespace chromeos_update_engine | 116 } // namespace chromeos_update_engine |
| OLD | NEW |