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 #include "net/disk_cache/simple/simple_version_upgrade.h" | 5 #include "net/disk_cache/simple/simple_version_upgrade.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/file_util.h" | |
9 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/files/file_util.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
11 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
14 #include "net/disk_cache/simple/simple_backend_version.h" | 14 #include "net/disk_cache/simple/simple_backend_version.h" |
15 #include "net/disk_cache/simple/simple_entry_format_history.h" | 15 #include "net/disk_cache/simple/simple_entry_format_history.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 // The migration process relies on ability to rename newly created files, which | 18 // The migration process relies on ability to rename newly created files, which |
19 // could be problematic on Windows XP. | 19 // could be problematic on Windows XP. |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 EXPECT_TRUE(base::ReadFileToString(cache_path.AppendASCII(file_name), | 131 EXPECT_TRUE(base::ReadFileToString(cache_path.AppendASCII(file_name), |
132 &real_contents)); | 132 &real_contents)); |
133 EXPECT_EQ(expected_contents, real_contents); | 133 EXPECT_EQ(expected_contents, real_contents); |
134 } | 134 } |
135 } | 135 } |
136 } | 136 } |
137 | 137 |
138 } // namespace | 138 } // namespace |
139 | 139 |
140 #endif // defined(OS_POSIX) | 140 #endif // defined(OS_POSIX) |
OLD | NEW |