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

Side by Side Diff: google_apis/drive/drive_api_parser_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
« no previous file with comments | « google_apis/drive/drive_api_parser.cc ('k') | google_apis/drive/drive_api_requests.h » ('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 "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
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
OLDNEW
« no previous file with comments | « google_apis/drive/drive_api_parser.cc ('k') | google_apis/drive/drive_api_requests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698