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

Issue 10829056: Add FileResource/FileList parser. (Closed)

Created:
8 years, 4 months ago by kochi
Modified:
8 years, 4 months ago
Reviewers:
satorux1
CC:
chromium-reviews, achuith+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, hashimoto, Daniel Erat
Visibility:
Public.

Description

Add FileResource/FileList parser. Still multiple list (uses next_link and token), parent folder handling etc. are missing, but minimal information is captured. BUG=chromium:127728 TEST=unit_tests --gtest_filter="DriveApiParserTest.*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149377

Patch Set 1 : . #

Total comments: 13

Patch Set 2 : fix for comments. #

Total comments: 7

Patch Set 3 : update for comments. #

Patch Set 4 : rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+495 lines, -90 lines) Patch
M chrome/browser/chromeos/gdata/drive_api_parser.h View 1 2 3 chunks +111 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/gdata/drive_api_parser.cc View 1 2 5 chunks +111 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc View 1 2 3 3 chunks +122 lines, -84 lines 0 comments Download
A chrome/test/data/chromeos/drive/filelist.json View 1 1 chunk +151 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
kochi
Satoru, Could you review this? Thanks!
8 years, 4 months ago (2012-07-27 10:11:25 UTC) #1
satorux1
http://codereview.chromium.org/10829056/diff/2001/chrome/browser/chromeos/gdata/drive_api_parser.h File chrome/browser/chromeos/gdata/drive_api_parser.h (right): http://codereview.chromium.org/10829056/diff/2001/chrome/browser/chromeos/gdata/drive_api_parser.h#newcode260 chrome/browser/chromeos/gdata/drive_api_parser.h:260: // FileResource reporesents a file in Drive. a file ...
8 years, 4 months ago (2012-07-27 23:03:10 UTC) #2
kochi
Thanks for the review! http://codereview.chromium.org/10829056/diff/2001/chrome/browser/chromeos/gdata/drive_api_parser.h File chrome/browser/chromeos/gdata/drive_api_parser.h (right): http://codereview.chromium.org/10829056/diff/2001/chrome/browser/chromeos/gdata/drive_api_parser.h#newcode260 chrome/browser/chromeos/gdata/drive_api_parser.h:260: // FileResource reporesents a file ...
8 years, 4 months ago (2012-07-30 07:46:52 UTC) #3
satorux1
http://codereview.chromium.org/10829056/diff/2001/chrome/browser/chromeos/gdata/drive_api_parser.h File chrome/browser/chromeos/gdata/drive_api_parser.h (right): http://codereview.chromium.org/10829056/diff/2001/chrome/browser/chromeos/gdata/drive_api_parser.h#newcode260 chrome/browser/chromeos/gdata/drive_api_parser.h:260: // FileResource reporesents a file in Drive. On 2012/07/30 ...
8 years, 4 months ago (2012-07-30 09:01:13 UTC) #4
satorux1
http://codereview.chromium.org/10829056/diff/9001/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc File chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc (right): http://codereview.chromium.org/10829056/diff/9001/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc#newcode81 chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc:81: IF_EXPECT_EQ(2U, applist->items().size()) { ASSERT_EQ http://codereview.chromium.org/10829056/diff/9001/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc#newcode95 chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc:95: IF_EXPECT_EQ(1U, app1.primary_mimetypes().size()) { ...
8 years, 4 months ago (2012-07-30 16:34:32 UTC) #5
kochi
On 2012/07/30 09:01:13, satorux1 wrote: > http://codereview.chromium.org/10829056/diff/2001/chrome/browser/chromeos/gdata/drive_api_parser.h > File chrome/browser/chromeos/gdata/drive_api_parser.h (right): > > http://codereview.chromium.org/10829056/diff/2001/chrome/browser/chromeos/gdata/drive_api_parser.h#newcode260 > ...
8 years, 4 months ago (2012-07-31 07:41:07 UTC) #6
kochi
http://codereview.chromium.org/10829056/diff/9001/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc File chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc (right): http://codereview.chromium.org/10829056/diff/9001/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc#newcode81 chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc:81: IF_EXPECT_EQ(2U, applist->items().size()) { On 2012/07/30 16:34:33, satorux1 wrote: > ...
8 years, 4 months ago (2012-07-31 08:07:58 UTC) #7
satorux1
LGTM with a request: http://codereview.chromium.org/10829056/diff/9001/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc File chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc (right): http://codereview.chromium.org/10829056/diff/9001/chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc#newcode181 chrome/browser/chromeos/gdata/drive_api_parser_unittest.cc:181: IF_EXPECT_EQ(3U, filelist->items().size()) { On 2012/07/31 ...
8 years, 4 months ago (2012-08-01 04:35:45 UTC) #8
kochi
8 years, 4 months ago (2012-08-01 04:51:23 UTC) #9
Thanks for the review!

> Could you also remove these IF_ macros from  gdata_wapi_parser_unittest.cc?

Filed a separate issue at crbug.com/139956 and will create a separate
patch.

Powered by Google App Engine
This is Rietveld 408576698