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

Issue 680643003: Read contents of test file after getting its absolute path. (Closed)

Created:
6 years, 1 month ago by anandc
Modified:
6 years, 1 month ago
Reviewers:
Lambros, Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Removes hard-coded 10K limit on file-size. BUG= Committed: https://crrev.com/8cd061582f4996cfe121232da9d957565cf6adfb Cr-Commit-Position: refs/heads/master@{#301510}

Patch Set 1 #

Total comments: 8

Patch Set 2 : assert_ne instead of assert_false and compare. #

Total comments: 2

Patch Set 3 : Create absolute path, for use in call to ReadFileToString. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -11 lines) Patch
M chrome/test/remoting/remote_desktop_browsertest.cc View 1 2 1 chunk +4 lines, -11 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
anandc
Hi Jamie, Please take a look. Thanks.
6 years, 1 month ago (2014-10-25 00:02:01 UTC) #3
Jamie
https://codereview.chromium.org/680643003/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc File chrome/test/remoting/remote_desktop_browsertest.cc (right): https://codereview.chromium.org/680643003/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc#newcode829 chrome/test/remoting/remote_desktop_browsertest.cc:829: scoped_ptr<char[]> file_contents(new char[accounts_file_size]); scoped_array feels like a better fit ...
6 years, 1 month ago (2014-10-25 00:05:14 UTC) #4
Lambros
https://codereview.chromium.org/680643003/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc File chrome/test/remoting/remote_desktop_browsertest.cc (right): https://codereview.chromium.org/680643003/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc#newcode830 chrome/test/remoting/remote_desktop_browsertest.cc:830: ASSERT_FALSE(base::ReadFile(accounts_file_path, file_contents.get(), ASSERT_NE https://codereview.chromium.org/680643003/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc#newcode834 chrome/test/remoting/remote_desktop_browsertest.cc:834: std::string accounts_info(file_contents.get(), accounts_file_size); Why ...
6 years, 1 month ago (2014-10-25 00:13:09 UTC) #6
anandc
Thanks Jamie and Lambros. PTAL at patch-set #2. https://codereview.chromium.org/680643003/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc File chrome/test/remoting/remote_desktop_browsertest.cc (right): https://codereview.chromium.org/680643003/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc#newcode829 chrome/test/remoting/remote_desktop_browsertest.cc:829: scoped_ptr<char[]> ...
6 years, 1 month ago (2014-10-27 19:17:53 UTC) #7
Jamie
lgtm
6 years, 1 month ago (2014-10-27 19:57:41 UTC) #8
Lambros
https://codereview.chromium.org/680643003/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc File chrome/test/remoting/remote_desktop_browsertest.cc (right): https://codereview.chromium.org/680643003/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc#newcode834 chrome/test/remoting/remote_desktop_browsertest.cc:834: std::string accounts_info(file_contents.get(), accounts_file_size); On 2014/10/27 19:17:53, anandc wrote: > ...
6 years, 1 month ago (2014-10-27 21:20:50 UTC) #9
anandc
Thanks Lambros. PTAL at PS #3. https://codereview.chromium.org/680643003/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc File chrome/test/remoting/remote_desktop_browsertest.cc (right): https://codereview.chromium.org/680643003/diff/20001/chrome/test/remoting/remote_desktop_browsertest.cc#newcode834 chrome/test/remoting/remote_desktop_browsertest.cc:834: std::string accounts_info(file_contents.get(), accounts_file_size); ...
6 years, 1 month ago (2014-10-27 22:18:57 UTC) #10
Lambros
lgtm
6 years, 1 month ago (2014-10-27 22:28:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/680643003/60001
6 years, 1 month ago (2014-10-27 22:33:04 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:60001)
6 years, 1 month ago (2014-10-28 00:20:27 UTC) #14
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 00:21:13 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8cd061582f4996cfe121232da9d957565cf6adfb
Cr-Commit-Position: refs/heads/master@{#301510}

Powered by Google App Engine
This is Rietveld 408576698