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