Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(760)

Side by Side Diff: chrome/browser/chromeos/gdata/document_entry_conversion_unittest.cc

Issue 10915226: OBSOLETE - Move drive.proto to browser/google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
10 #include "chrome/browser/chromeos/gdata/drive_test_util.h" 9 #include "chrome/browser/chromeos/gdata/drive_test_util.h"
11 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" 10 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h"
11 #include "chrome/browser/google_apis/drive.pb.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(test_util::LoadJSONFile("file_entry.json")); 18 scoped_ptr<base::Value> value(test_util::LoadJSONFile("file_entry.json"));
19 ASSERT_TRUE(value.get()); 19 ASSERT_TRUE(value.get());
20 20
21 scoped_ptr<DocumentEntry> document_entry( 21 scoped_ptr<DocumentEntry> document_entry(
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 EXPECT_EQ("", 264 EXPECT_EQ("",
265 entry_proto.file_specific_info().thumbnail_url()); 265 entry_proto.file_specific_info().thumbnail_url());
266 EXPECT_EQ("https://alternate/document%3Adeleted_in_root_id/edit", 266 EXPECT_EQ("https://alternate/document%3Adeleted_in_root_id/edit",
267 entry_proto.file_specific_info().alternate_url()); 267 entry_proto.file_specific_info().alternate_url());
268 268
269 // The size should be 0 for a hosted document. 269 // The size should be 0 for a hosted document.
270 EXPECT_EQ(0, entry_proto.file_info().size()); 270 EXPECT_EQ(0, entry_proto.file_info().size());
271 } 271 }
272 272
273 } // namespace gdata 273 } // namespace gdata
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/document_entry_conversion.cc ('k') | chrome/browser/chromeos/gdata/drive.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698