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 "base/file_util.h" | |
6 #include "base/files/file.h" | 5 #include "base/files/file.h" |
7 #include "base/files/file_enumerator.h" | 6 #include "base/files/file_enumerator.h" |
8 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/test/test_suite.h" | 10 #include "base/test/test_suite.h" |
11 #include "third_party/leveldatabase/env_chromium_stdio.h" | 11 #include "third_party/leveldatabase/env_chromium_stdio.h" |
12 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
13 #include "third_party/leveldatabase/env_chromium_win.h" | 13 #include "third_party/leveldatabase/env_chromium_win.h" |
14 #endif | 14 #endif |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "third_party/leveldatabase/env_idb.h" | 16 #include "third_party/leveldatabase/env_idb.h" |
17 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 17 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
18 | 18 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 EXPECT_TRUE(status.ok()); | 263 EXPECT_TRUE(status.ok()); |
264 EXPECT_EQ(1U, result.size()); | 264 EXPECT_EQ(1U, result.size()); |
265 | 265 |
266 // And a second time should also return one result | 266 // And a second time should also return one result |
267 status = env->GetChildren(dir.AsUTF8Unsafe(), &result); | 267 status = env->GetChildren(dir.AsUTF8Unsafe(), &result); |
268 EXPECT_TRUE(status.ok()); | 268 EXPECT_TRUE(status.ok()); |
269 EXPECT_EQ(1U, result.size()); | 269 EXPECT_EQ(1U, result.size()); |
270 } | 270 } |
271 | 271 |
272 int main(int argc, char** argv) { return base::TestSuite(argc, argv).Run(); } | 272 int main(int argc, char** argv) { return base::TestSuite(argc, argv).Run(); } |
OLD | NEW |