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

Unified Diff: chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc

Issue 10836205: Parse labels under File resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 | « chrome/browser/chromeos/gdata/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: chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc
diff --git a/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc b/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc
index 73450cb221d5c8aafc7b08675ca67a9e62186557..ae86b6b90167085332ce0c37508d8e4e78ccf1dd 100644
--- a/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc
+++ b/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc
@@ -170,6 +170,12 @@ TEST_F(DriveAPIParserTest, FileListParser) {
EXPECT_EQ("My first file data", file1.title());
EXPECT_EQ("application/octet-stream", file1.mime_type());
+ EXPECT_FALSE(file1.labels().is_starred());
+ EXPECT_FALSE(file1.labels().is_hidden());
+ EXPECT_FALSE(file1.labels().is_trashed());
+ EXPECT_FALSE(file1.labels().is_restricted());
+ EXPECT_TRUE(file1.labels().is_viewed());
hashimoto 2012/08/14 02:23:10 Could you add tests to ensure that other four gett
kochi 2012/08/14 02:32:12 Done.
+
base::Time created_time;
ASSERT_TRUE(gdata::util::GetTimeFromString("2012-07-24T08:51:16.570Z",
&created_time));
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_api_parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698