OLD | NEW |
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 Loading... |
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 |
OLD | NEW |