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/chromeos/drive/resource_entry_conversion.h" | 5 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" |
6 | 6 |
7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
8 #include "chrome/browser/chromeos/drive/drive.pb.h" | 8 #include "chrome/browser/chromeos/drive/drive.pb.h" |
9 #include "chrome/browser/drive/drive_api_util.h" | 9 #include "components/drive/drive_api_util.h" |
10 #include "google_apis/drive/drive_api_parser.h" | 10 #include "google_apis/drive/drive_api_parser.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 namespace drive { | 13 namespace drive { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 base::Time GetTestTime() { | 17 base::Time GetTestTime() { |
18 // 2011-12-14-T00:40:47.330Z | 18 // 2011-12-14-T00:40:47.330Z |
19 base::Time::Exploded exploded; | 19 base::Time::Exploded exploded; |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 std::string parent_resource_id; | 365 std::string parent_resource_id; |
366 EXPECT_TRUE(ConvertFileResourceToResourceEntry( | 366 EXPECT_TRUE(ConvertFileResourceToResourceEntry( |
367 entry_no_fields, &entry, &parent_resource_id)); | 367 entry_no_fields, &entry, &parent_resource_id)); |
368 EXPECT_FALSE(entry.file_specific_info().has_image_width()); | 368 EXPECT_FALSE(entry.file_specific_info().has_image_width()); |
369 EXPECT_FALSE(entry.file_specific_info().has_image_height()); | 369 EXPECT_FALSE(entry.file_specific_info().has_image_height()); |
370 EXPECT_FALSE(entry.file_specific_info().has_image_rotation()); | 370 EXPECT_FALSE(entry.file_specific_info().has_image_rotation()); |
371 } | 371 } |
372 } | 372 } |
373 | 373 |
374 } // namespace drive | 374 } // namespace drive |
OLD | NEW |