|
|
DescriptionUse ReadFile instead of ReadFileToString, to work with relative paths.
BUG=424844
Committed: https://crrev.com/aa3e63da0ed80c29d46a92a545560f6515ad652e
Cr-Commit-Position: refs/heads/master@{#300834}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Clarify comments for not using ReadFileToString. #Patch Set 3 : Fix compile error on Windows: use constant char-array size. #Messages
Total messages: 25 (10 generated)
anandc@chromium.org changed reviewers: + weitaosu@chromium.org
Hi Weitao, Please take a look. An error reading contents of the test file was encountered when attempting to run the Auth test for the first time using the isolate+swarm system. The fix made results in the Auth test succeeding. https://codereview.chromium.org/639123010/diff/1/chrome/test/remoting/remote_... File chrome/test/remoting/remote_desktop_browsertest.cc (left): https://codereview.chromium.org/639123010/diff/1/chrome/test/remoting/remote_... chrome/test/remoting/remote_desktop_browsertest.cc:826: ASSERT_TRUE(base::ReadFileToString(accounts_file_path, &accounts_info)); ReadFileToString returns an error if the file-path is relative. See comment here: https://code.google.com/p/chromium/codesearch#chromium/src/base/files/file_ut... Tests that run on the swarming slaves use relative paths, so we have to use ReadFile instead.
anandc@chromium.org changed reviewers: + garykac@chromium.org
Adding garykac@ to reviewers, who offered to take a look as well. Thanks.
On 2014/10/20 18:48:50, anandc wrote: > Adding garykac@ to reviewers, who offered to take a look as well. > > Thanks. Ping.
anandc@chromium.org changed reviewers: - garykac@chromium.org
On 2014/10/21 15:43:41, anandc wrote: > On 2014/10/20 18:48:50, anandc wrote: > > Adding garykac@ to reviewers, who offered to take a look as well. > > > > Thanks. > > Ping. Another ping. Weitao, PTAL. Thanks. (Removed Gary, to not clutter reviewers.)
jamiewalch@chromium.org changed reviewers: + jamiewalch@chromium.org
ltgm once my comment is addressed. https://codereview.chromium.org/639123010/diff/1/chrome/test/remoting/remote_... File chrome/test/remoting/remote_desktop_browsertest.cc (right): https://codereview.chromium.org/639123010/diff/1/chrome/test/remoting/remote_... chrome/test/remoting/remote_desktop_browsertest.cc:825: // To handle relative paths, we'll first get the size of the file. Getting the size of the file is not only needed for relative file paths, so this comment is a bit confusing. I think the comment you added to the code-review is better and would explain why we can't use ReadFileToString here. https://codereview.chromium.org/639123010/diff/1/chrome/test/remoting/remote_... chrome/test/remoting/remote_desktop_browsertest.cc:830: ASSERT_FALSE(base::ReadFile(accounts_file_path, buf, sizeof(buf)-1) == -1); Nit: spaces around the subtraction operator.
Patchset #2 (id:20001) has been deleted
Thanks. Done. https://codereview.chromium.org/639123010/diff/1/chrome/test/remoting/remote_... File chrome/test/remoting/remote_desktop_browsertest.cc (right): https://codereview.chromium.org/639123010/diff/1/chrome/test/remoting/remote_... chrome/test/remoting/remote_desktop_browsertest.cc:825: // To handle relative paths, we'll first get the size of the file. On 2014/10/22 23:02:26, Jamie wrote: > Getting the size of the file is not only needed for relative file paths, so this > comment is a bit confusing. I think the comment you added to the code-review is > better and would explain why we can't use ReadFileToString here. Done. https://codereview.chromium.org/639123010/diff/1/chrome/test/remoting/remote_... chrome/test/remoting/remote_desktop_browsertest.cc:830: ASSERT_FALSE(base::ReadFile(accounts_file_path, buf, sizeof(buf)-1) == -1); On 2014/10/22 23:02:26, Jamie wrote: > Nit: spaces around the subtraction operator. Done.
The CQ bit was checked by anandc@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/639123010/40001
The CQ bit was unchecked by commit-bot@chromium.org
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an LGTM may have been provided, it was from a non-committer or a provisional committer, _not_ a full super star committer. See http://www.chromium.org/getting-involved/become-a-committer Note that this has nothing to do with OWNERS files.
Probably because I spelled "LGTM" wrong :)
The CQ bit was checked by jamiewalch@chromium.org
oh, didn't notice, kept wondering why it is not green. Thanks. On Wed, Oct 22, 2014 at 5:27 PM, <jamiewalch@chromium.org> wrote: > Probably because I spelled "LGTM" wrong :) > > https://codereview.chromium.org/639123010/ > To unsubscribe from this group and stop receiving emails from it, send an email to chromium-reviews+unsubscribe@chromium.org.
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/639123010/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel/...)
The CQ bit was checked by anandc@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/639123010/60001
Message was sent while issue was closed.
Committed patchset #3 (id:60001)
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/aa3e63da0ed80c29d46a92a545560f6515ad652e Cr-Commit-Position: refs/heads/master@{#300834} |