OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <stddef.h> |
| 6 |
5 #include <algorithm> | 7 #include <algorithm> |
6 #include <cstring> | 8 #include <cstring> |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/files/file.h" | 11 #include "base/files/file.h" |
10 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
11 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
12 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
13 #include "base/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
14 #include "content/browser/indexed_db/leveldb/leveldb_comparator.h" | 16 #include "content/browser/indexed_db/leveldb/leveldb_comparator.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 261 |
260 leveldb::FileLock* lock2; | 262 leveldb::FileLock* lock2; |
261 status = env->LockFile(file.AsUTF8Unsafe(), &lock2); | 263 status = env->LockFile(file.AsUTF8Unsafe(), &lock2); |
262 EXPECT_FALSE(status.ok()); | 264 EXPECT_FALSE(status.ok()); |
263 | 265 |
264 status = env->UnlockFile(lock); | 266 status = env->UnlockFile(lock); |
265 EXPECT_TRUE(status.ok()); | 267 EXPECT_TRUE(status.ok()); |
266 } | 268 } |
267 | 269 |
268 } // namespace content | 270 } // namespace content |
OLD | NEW |