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

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

Issue 96413002: Move c/b/google_apis to google_apis/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 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 "chrome/browser/sync_file_system/drive_backend/metadata_database.h" 5 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/scoped_temp_dir.h" 8 #include "base/files/scoped_temp_dir.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "chrome/browser/google_apis/drive_api_parser.h"
13 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants. h" 12 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants. h"
14 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_test_util. h" 13 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_test_util. h"
15 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" 14 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h"
16 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" 15 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h"
17 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h" 16 #include "chrome/browser/sync_file_system/sync_file_system_test_util.h"
17 #include "google_apis/drive/drive_api_parser.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "third_party/leveldatabase/src/include/leveldb/db.h" 19 #include "third_party/leveldatabase/src/include/leveldb/db.h"
20 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" 20 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h"
21 21
22 #define FPL(a) FILE_PATH_LITERAL(a) 22 #define FPL(a) FILE_PATH_LITERAL(a)
23 23
24 namespace sync_file_system { 24 namespace sync_file_system {
25 namespace drive_backend { 25 namespace drive_backend {
26 26
27 namespace { 27 namespace {
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 EXPECT_TRUE(file->HasKey("details")); 1117 EXPECT_TRUE(file->HasKey("details"));
1118 1118
1119 ASSERT_TRUE(files->GetDictionary(1, &file)); 1119 ASSERT_TRUE(files->GetDictionary(1, &file));
1120 EXPECT_TRUE(file->GetString("title", &str) && str == "file_0"); 1120 EXPECT_TRUE(file->GetString("title", &str) && str == "file_0");
1121 EXPECT_TRUE(file->GetString("type", &str) && str == "file"); 1121 EXPECT_TRUE(file->GetString("type", &str) && str == "file");
1122 EXPECT_TRUE(file->HasKey("details")); 1122 EXPECT_TRUE(file->HasKey("details"));
1123 } 1123 }
1124 1124
1125 } // namespace drive_backend 1125 } // namespace drive_backend
1126 } // namespace sync_file_system 1126 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698