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

Side by Side Diff: google_apis/drive/gdata_wapi_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/gdata_wapi_parser.cc ('k') | google_apis/drive/gdata_wapi_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/gdata_wapi_parser.h" 5 #include "google_apis/drive/gdata_wapi_parser.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/json/json_file_value_serializer.h" 10 #include "base/json/json_file_value_serializer.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/google_apis/test_util.h" 14 #include "google_apis/drive/test_util.h"
15 #include "chrome/browser/google_apis/time_util.h" 15 #include "google_apis/drive/time_util.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace google_apis { 18 namespace google_apis {
19 19
20 // TODO(nhiroki): Move json files to out of 'chromeos' directory 20 // TODO(nhiroki): Move json files to out of 'chromeos' directory
21 // (http://crbug.com/149788). 21 // (http://crbug.com/149788).
22 // Test document feed parsing. 22 // Test document feed parsing.
23 TEST(GDataWAPIParserTest, ResourceListJsonParser) { 23 TEST(GDataWAPIParserTest, ResourceListJsonParser) {
24 std::string error; 24 std::string error;
25 scoped_ptr<base::Value> document = 25 scoped_ptr<base::Value> document =
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_EXTERNAL_APP)); 380 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_EXTERNAL_APP));
381 EXPECT_EQ(ResourceEntry::KIND_OF_FOLDER, 381 EXPECT_EQ(ResourceEntry::KIND_OF_FOLDER,
382 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_FOLDER)); 382 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_FOLDER));
383 EXPECT_EQ(ResourceEntry::KIND_OF_FILE, 383 EXPECT_EQ(ResourceEntry::KIND_OF_FILE,
384 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_FILE)); 384 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_FILE));
385 EXPECT_EQ(ResourceEntry::KIND_OF_FILE, 385 EXPECT_EQ(ResourceEntry::KIND_OF_FILE,
386 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_PDF)); 386 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_PDF));
387 } 387 }
388 388
389 } // namespace google_apis 389 } // namespace google_apis
OLDNEW
« no previous file with comments | « google_apis/drive/gdata_wapi_parser.cc ('k') | google_apis/drive/gdata_wapi_requests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698