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 "chrome/browser/google_apis/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 "chrome/browser/google_apis/gdata_wapi_parser.h" | 9 #include "google_apis/drive/gdata_wapi_parser.h" |
10 #include "chrome/browser/google_apis/test_util.h" | 10 #include "google_apis/drive/test_util.h" |
11 #include "chrome/browser/google_apis/time_util.h" | 11 #include "google_apis/drive/time_util.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 namespace google_apis { | 14 namespace google_apis { |
15 | 15 |
16 // Test about resource parsing. | 16 // Test about resource parsing. |
17 TEST(DriveAPIParserTest, AboutResourceParser) { | 17 TEST(DriveAPIParserTest, AboutResourceParser) { |
18 std::string error; | 18 std::string error; |
19 scoped_ptr<base::Value> document = test_util::LoadJSONFile( | 19 scoped_ptr<base::Value> document = test_util::LoadJSONFile( |
20 "drive/about.json"); | 20 "drive/about.json"); |
21 ASSERT_TRUE(document.get()); | 21 ASSERT_TRUE(document.get()); |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 test_util::LoadJSONFile("drive/filelist.json")); | 289 test_util::LoadJSONFile("drive/filelist.json")); |
290 | 290 |
291 EXPECT_TRUE(ChangeList::HasChangeListKind(*change_list_json)); | 291 EXPECT_TRUE(ChangeList::HasChangeListKind(*change_list_json)); |
292 EXPECT_FALSE(ChangeList::HasChangeListKind(*file_list_json)); | 292 EXPECT_FALSE(ChangeList::HasChangeListKind(*file_list_json)); |
293 | 293 |
294 EXPECT_FALSE(FileList::HasFileListKind(*change_list_json)); | 294 EXPECT_FALSE(FileList::HasFileListKind(*change_list_json)); |
295 EXPECT_TRUE(FileList::HasFileListKind(*file_list_json)); | 295 EXPECT_TRUE(FileList::HasFileListKind(*file_list_json)); |
296 } | 296 } |
297 | 297 |
298 } // namespace google_apis | 298 } // namespace google_apis |
OLD | NEW |