OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/leveldb_proto/proto_database_impl.h" | 5 #include "components/leveldb_proto/proto_database_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
11 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
12 #include "base/location.h" | 14 #include "base/location.h" |
13 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
14 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" |
15 #include "components/leveldb_proto/leveldb_database.h" | 17 #include "components/leveldb_proto/leveldb_database.h" |
16 #include "components/leveldb_proto/testing/proto/test.pb.h" | 18 #include "components/leveldb_proto/testing/proto/test.pb.h" |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 | 436 |
435 ASSERT_TRUE(db->Save(save_entries, remove_keys)); | 437 ASSERT_TRUE(db->Save(save_entries, remove_keys)); |
436 | 438 |
437 std::vector<std::string> second_load_entries; | 439 std::vector<std::string> second_load_entries; |
438 | 440 |
439 ASSERT_TRUE(db->Load(&second_load_entries)); | 441 ASSERT_TRUE(db->Load(&second_load_entries)); |
440 EXPECT_EQ(1u, second_load_entries.size()); | 442 EXPECT_EQ(1u, second_load_entries.size()); |
441 } | 443 } |
442 | 444 |
443 } // namespace leveldb_proto | 445 } // namespace leveldb_proto |
OLD | NEW |