Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/metadata_database_index_unittest.cc

Issue 349543003: [SyncFS] Use pointers to MetadataDatabaseIndexInterface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Work for nits Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698