| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 NET_DISK_CACHE_SIMPLE_SIMPLE_TEST_UTIL_H_ | 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_TEST_UTIL_H_ |
| 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_TEST_UTIL_H_ | 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const base::FilePath& cache_path); | 48 const base::FilePath& cache_path); |
| 49 | 49 |
| 50 // Modifies the key SHA256 from an entry so that it is corrupt. | 50 // Modifies the key SHA256 from an entry so that it is corrupt. |
| 51 bool CorruptKeySHA256FromEntry(const std::string& key, | 51 bool CorruptKeySHA256FromEntry(const std::string& key, |
| 52 const base::FilePath& cache_path); | 52 const base::FilePath& cache_path); |
| 53 | 53 |
| 54 // Modifies the stream 0 length field from an entry so it is invalid. | 54 // Modifies the stream 0 length field from an entry so it is invalid. |
| 55 bool CorruptStream0LengthFromEntry(const std::string& key, | 55 bool CorruptStream0LengthFromEntry(const std::string& key, |
| 56 const base::FilePath& cache_path); | 56 const base::FilePath& cache_path); |
| 57 | 57 |
| 58 } // namespace simple_backend | 58 } // namespace simple_util |
| 59 } // namespace disk_cache | 59 } // namespace disk_cache |
| 60 | 60 |
| 61 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_TEST_UTIL_H_ | 61 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_TEST_UTIL_H_ |
| OLD | NEW |