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 "google_apis/drive/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" | |
10 #include "base/json/json_file_value_serializer.h" | 9 #include "base/json/json_file_value_serializer.h" |
11 #include "base/logging.h" | |
12 #include "base/time/time.h" | 10 #include "base/time/time.h" |
13 #include "base/values.h" | 11 #include "base/values.h" |
14 #include "google_apis/drive/test_util.h" | 12 #include "google_apis/drive/test_util.h" |
15 #include "google_apis/drive/time_util.h" | 13 #include "google_apis/drive/time_util.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
17 | 15 |
18 namespace google_apis { | 16 namespace google_apis { |
19 | 17 |
20 // Test document feed parsing. | 18 // Test document feed parsing. |
21 TEST(GDataWAPIParserTest, ResourceListJsonParser) { | 19 TEST(GDataWAPIParserTest, ResourceListJsonParser) { |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 EXPECT_EQ(892721, entry->file_size()); | 225 EXPECT_EQ(892721, entry->file_size()); |
228 | 226 |
229 // WAPI doesn't provide image metadata, but these fields are available | 227 // WAPI doesn't provide image metadata, but these fields are available |
230 // since this class can wrap data received from Drive API (via a converter). | 228 // since this class can wrap data received from Drive API (via a converter). |
231 EXPECT_EQ(-1, entry->image_width()); | 229 EXPECT_EQ(-1, entry->image_width()); |
232 EXPECT_EQ(-1, entry->image_height()); | 230 EXPECT_EQ(-1, entry->image_height()); |
233 EXPECT_EQ(-1, entry->image_rotation()); | 231 EXPECT_EQ(-1, entry->image_rotation()); |
234 } | 232 } |
235 | 233 |
236 } // namespace google_apis | 234 } // namespace google_apis |
OLD | NEW |