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

Unified Diff: google_apis/drive/drive_api_parser_unittest.cc

Issue 216433002: drive: Make FileResource copyable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « google_apis/drive/drive_api_parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/drive/drive_api_parser_unittest.cc
diff --git a/google_apis/drive/drive_api_parser_unittest.cc b/google_apis/drive/drive_api_parser_unittest.cc
index fd9b0c39bc480c4ab22a8730f3a173faaf1a1527..89f4c01fd4767ee144c1bef381ac8bdf9c89b424 100644
--- a/google_apis/drive/drive_api_parser_unittest.cc
+++ b/google_apis/drive/drive_api_parser_unittest.cc
@@ -169,11 +169,11 @@ TEST(DriveAPIParserTest, FileListParser) {
EXPECT_EQ(modified_time, file1.modified_by_me_date());
ASSERT_EQ(1U, file1.parents().size());
- EXPECT_EQ("0B4v7G8yEYAWHYW1OcExsUVZLABC", file1.parents()[0]->file_id());
+ EXPECT_EQ("0B4v7G8yEYAWHYW1OcExsUVZLABC", file1.parents()[0].file_id());
EXPECT_EQ(GURL("https://www.googleapis.com/drive/v2/files/"
"0B4v7G8yEYAWHYW1OcExsUVZLABC"),
- file1.parents()[0]->parent_link());
- EXPECT_FALSE(file1.parents()[0]->is_root());
+ file1.parents()[0].parent_link());
+ EXPECT_FALSE(file1.parents()[0].is_root());
EXPECT_EQ("ext", file1.file_extension());
EXPECT_EQ("d41d8cd98f00b204e9800998ecf8427e", file1.md5_checksum());
@@ -223,8 +223,8 @@ TEST(DriveAPIParserTest, FileListParser) {
EXPECT_FALSE(file3.shared());
ASSERT_EQ(1U, file3.parents().size());
- EXPECT_EQ("0AIv7G8yEYAWHUk9ABC", file3.parents()[0]->file_id());
- EXPECT_TRUE(file3.parents()[0]->is_root());
+ EXPECT_EQ("0AIv7G8yEYAWHUk9ABC", file3.parents()[0].file_id());
+ EXPECT_TRUE(file3.parents()[0].is_root());
EXPECT_EQ(0U, file3.open_with_links().size());
}
« no previous file with comments | « google_apis/drive/drive_api_parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698