| 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/gdata/document_entry_conversion.h" | 5 #include "chrome/browser/chromeos/gdata/document_entry_conversion.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/chromeos/gdata/drive.pb.h" | 9 #include "chrome/browser/chromeos/gdata/drive.pb.h" |
| 10 #include "chrome/browser/chromeos/gdata/drive_test_util.h" | 10 #include "chrome/browser/chromeos/gdata/drive_test_util.h" |
| 11 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" | 11 #include "chrome/browser/google_apis/gdata_wapi_parser.h" |
| 12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace gdata { | 15 namespace gdata { |
| 16 | 16 |
| 17 TEST(DocumentEntryConversionTest, ConvertDocumentEntryToDriveEntryProto_File) { | 17 TEST(DocumentEntryConversionTest, ConvertDocumentEntryToDriveEntryProto_File) { |
| 18 scoped_ptr<base::Value> value = | 18 scoped_ptr<base::Value> value = |
| 19 test_util::LoadJSONFile("gdata/file_entry.json"); | 19 test_util::LoadJSONFile("gdata/file_entry.json"); |
| 20 ASSERT_TRUE(value.get()); | 20 ASSERT_TRUE(value.get()); |
| 21 | 21 |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 EXPECT_EQ("", | 265 EXPECT_EQ("", |
| 266 entry_proto.file_specific_info().thumbnail_url()); | 266 entry_proto.file_specific_info().thumbnail_url()); |
| 267 EXPECT_EQ("https://alternate/document%3Adeleted_in_root_id/edit", | 267 EXPECT_EQ("https://alternate/document%3Adeleted_in_root_id/edit", |
| 268 entry_proto.file_specific_info().alternate_url()); | 268 entry_proto.file_specific_info().alternate_url()); |
| 269 | 269 |
| 270 // The size should be 0 for a hosted document. | 270 // The size should be 0 for a hosted document. |
| 271 EXPECT_EQ(0, entry_proto.file_info().size()); | 271 EXPECT_EQ(0, entry_proto.file_info().size()); |
| 272 } | 272 } |
| 273 | 273 |
| 274 } // namespace gdata | 274 } // namespace gdata |
| OLD | NEW |