| 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/metadata_database_index.
h" | 5 #include "chrome/browser/sync_file_system/drive_backend/metadata_database_index.
h" |
| 6 | 6 |
| 7 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 7 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
| 8 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
| 8 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 9 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 11 |
| 11 namespace sync_file_system { | 12 namespace sync_file_system { |
| 12 namespace drive_backend { | 13 namespace drive_backend { |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 const int64 kSyncRootTrackerID = 1; | 17 const int64 kSyncRootTrackerID = 1; |
| 17 const int64 kAppRootTrackerID = 2; | 18 const int64 kAppRootTrackerID = 2; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 184 |
| 184 index.RemoveFileMetadata("file_id"); | 185 index.RemoveFileMetadata("file_id"); |
| 185 index.RemoveFileTracker(kFileTrackerID); | 186 index.RemoveFileTracker(kFileTrackerID); |
| 186 | 187 |
| 187 EXPECT_FALSE(index.GetFileMetadata("file_id")); | 188 EXPECT_FALSE(index.GetFileMetadata("file_id")); |
| 188 EXPECT_FALSE(index.GetFileTracker(kFileTrackerID)); | 189 EXPECT_FALSE(index.GetFileTracker(kFileTrackerID)); |
| 189 } | 190 } |
| 190 | 191 |
| 191 } // namespace drive_backend | 192 } // namespace drive_backend |
| 192 } // namespace sync_file_system | 193 } // namespace sync_file_system |
| OLD | NEW |