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 "chrome/browser/google_apis/gdata_wapi_parser.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/json/json_file_value_serializer.h" | 9 #include "base/json/json_file_value_serializer.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "base/time.h" | 13 #include "base/time.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "chrome/browser/google_apis/test_util.h" | 16 #include "chrome/browser/google_apis/test_util.h" |
17 #include "chrome/browser/google_apis/time_util.h" | 17 #include "chrome/browser/google_apis/time_util.h" |
18 #include "chrome/common/chrome_paths.h" | |
19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
20 | 19 |
21 using base::Value; | 20 using base::Value; |
22 using base::DictionaryValue; | 21 using base::DictionaryValue; |
23 using base::ListValue; | 22 using base::ListValue; |
24 | 23 |
25 namespace google_apis { | 24 namespace google_apis { |
26 | 25 |
27 // TODO(nhiroki): Move json files to out of 'chromeos' directory | 26 // TODO(nhiroki): Move json files to out of 'chromeos' directory |
28 // (http://crbug.com/149788). | 27 // (http://crbug.com/149788). |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_EXTERNAL_APP)); | 355 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_EXTERNAL_APP)); |
357 EXPECT_EQ(ResourceEntry::KIND_OF_FOLDER, | 356 EXPECT_EQ(ResourceEntry::KIND_OF_FOLDER, |
358 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_FOLDER)); | 357 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_FOLDER)); |
359 EXPECT_EQ(ResourceEntry::KIND_OF_FILE, | 358 EXPECT_EQ(ResourceEntry::KIND_OF_FILE, |
360 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_FILE)); | 359 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_FILE)); |
361 EXPECT_EQ(ResourceEntry::KIND_OF_FILE, | 360 EXPECT_EQ(ResourceEntry::KIND_OF_FILE, |
362 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_PDF)); | 361 ResourceEntry::ClassifyEntryKind(ENTRY_KIND_PDF)); |
363 } | 362 } |
364 | 363 |
365 } // namespace google_apis | 364 } // namespace google_apis |
OLD | NEW |