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 "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/leveldb_wrapper.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
11 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" | 16 #include "third_party/leveldatabase/src/helpers/memenv/memenv.h" |
14 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 17 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
15 #include "third_party/leveldatabase/src/include/leveldb/env.h" | 18 #include "third_party/leveldatabase/src/include/leveldb/env.h" |
16 | 19 |
17 namespace sync_file_system { | 20 namespace sync_file_system { |
18 namespace drive_backend { | 21 namespace drive_backend { |
19 | 22 |
20 struct TestData { | 23 struct TestData { |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 235 |
233 EXPECT_EQ(0, GetDB()->num_puts()); | 236 EXPECT_EQ(0, GetDB()->num_puts()); |
234 EXPECT_EQ(0, GetDB()->num_deletes()); | 237 EXPECT_EQ(0, GetDB()->num_deletes()); |
235 | 238 |
236 SCOPED_TRACE("DeleteTest_Commit"); | 239 SCOPED_TRACE("DeleteTest_Commit"); |
237 CheckDBContents(merged_data, arraysize(merged_data)); | 240 CheckDBContents(merged_data, arraysize(merged_data)); |
238 } | 241 } |
239 | 242 |
240 } // namespace drive_backend | 243 } // namespace drive_backend |
241 } // namespace sync_file_system | 244 } // namespace sync_file_system |
OLD | NEW |