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

Side by Side Diff: google_apis/drive/drive_api_parser_unittest.cc

Issue 443303003: Random cleanup around google_apis/drive and c/b/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « google_apis/drive/drive_api_parser.cc ('k') | google_apis/drive/gdata_wapi_parser_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "google_apis/drive/drive_api_parser.h" 5 #include "google_apis/drive/drive_api_parser.h"
6 6
7 #include "base/time/time.h" 7 #include "base/time/time.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "google_apis/drive/gdata_wapi_parser.h"
10 #include "google_apis/drive/test_util.h" 9 #include "google_apis/drive/test_util.h"
11 #include "google_apis/drive/time_util.h" 10 #include "google_apis/drive/time_util.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 12
14 namespace google_apis { 13 namespace google_apis {
15 14
16 // Test about resource parsing. 15 // Test about resource parsing.
17 TEST(DriveAPIParserTest, AboutResourceParser) { 16 TEST(DriveAPIParserTest, AboutResourceParser) {
18 std::string error; 17 std::string error;
19 scoped_ptr<base::Value> document = test_util::LoadJSONFile( 18 scoped_ptr<base::Value> document = test_util::LoadJSONFile(
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 test_util::LoadJSONFile("drive/filelist.json")); 265 test_util::LoadJSONFile("drive/filelist.json"));
267 266
268 EXPECT_TRUE(ChangeList::HasChangeListKind(*change_list_json)); 267 EXPECT_TRUE(ChangeList::HasChangeListKind(*change_list_json));
269 EXPECT_FALSE(ChangeList::HasChangeListKind(*file_list_json)); 268 EXPECT_FALSE(ChangeList::HasChangeListKind(*file_list_json));
270 269
271 EXPECT_FALSE(FileList::HasFileListKind(*change_list_json)); 270 EXPECT_FALSE(FileList::HasFileListKind(*change_list_json));
272 EXPECT_TRUE(FileList::HasFileListKind(*file_list_json)); 271 EXPECT_TRUE(FileList::HasFileListKind(*file_list_json));
273 } 272 }
274 273
275 } // namespace google_apis 274 } // namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_parser.cc ('k') | google_apis/drive/gdata_wapi_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698