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

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

Issue 10920091: Move Drive API files to google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reflect comments 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" 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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/document_entry_conversion.cc ('k') | chrome/browser/chromeos/gdata/drive_api_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698