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 3 // found in the LICENSE file. 4 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_TEST_UTIL_H_ 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_TEST_UTIL_H_ 7 8 #include <string> 9 10 #include "base/basictypes.h" 11 #include "net/base/net_export.h" 12 13 namespace base { 14 class FilePath; 15 } 16 17 namespace disk_cache { 18 19 namespace simple_util { 20 21 // Creates a corrupt file to be used in tests. 22 bool CreateCorruptFileForTests(const std::string& key, 23 const base::FilePath& cache_path); 24 25 } // namespace simple_backend 26 27 } // namespace disk_cache 28 29 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_TEST_UTIL_H_ 30