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 "components/drive/resource_metadata_storage.h" | 5 #include "components/drive/resource_metadata_storage.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 | 11 |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "components/drive/chromeos/drive_test_util.h" | 18 #include "components/drive/chromeos/drive_test_util.h" |
19 #include "components/drive/drive.pb.h" | 19 #include "components/drive/drive.pb.h" |
20 #include "content/public/test/test_browser_thread_bundle.h" | 20 #include "content/public/test/test_browser_thread_bundle.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 22 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
23 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" | 23 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" |
24 | 24 |
25 namespace drive { | 25 namespace drive { |
26 namespace internal { | 26 namespace internal { |
27 | 27 |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 EXPECT_EQ(FILE_ERROR_OK, storage_->RemoveEntry(key3)); | 629 EXPECT_EQ(FILE_ERROR_OK, storage_->RemoveEntry(key3)); |
630 EXPECT_TRUE(CheckValidity()); | 630 EXPECT_TRUE(CheckValidity()); |
631 | 631 |
632 // Remove key1. | 632 // Remove key1. |
633 EXPECT_EQ(FILE_ERROR_OK, storage_->RemoveEntry(key1)); | 633 EXPECT_EQ(FILE_ERROR_OK, storage_->RemoveEntry(key1)); |
634 EXPECT_TRUE(CheckValidity()); | 634 EXPECT_TRUE(CheckValidity()); |
635 } | 635 } |
636 | 636 |
637 } // namespace internal | 637 } // namespace internal |
638 } // namespace drive | 638 } // namespace drive |
OLD | NEW |