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

Issue 51323004: Move most of TestNaClBrowserDelegate to another file. (Closed)

Created:
7 years, 1 month ago by jvoung (off chromium)
Modified:
7 years, 1 month ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Move most of TestNaClBrowserDelegate to another file. It was originally in nacl_file_host_unittest. Move it to components/ and consider it the "base" test version. In nacl_file_host_unittest, provide slimmer version that overrides just what we need for the unittest. This means that we can reuse the TestNaClBrowserDelegate for other tests. E.g., I'll be adding one for checking that the "abi-version" matters for translation caching, and to test that we need to do a similar trick of having a Get/SetPnaclDirectory pair, so as not to modify the PNaCl files inline. It also means that we don't need to modify the test file every time something is added to the NaClBrowserDelegate. BUG=none NOTRY=true (already tried) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233404

Patch Set 1 #

Patch Set 2 : update comment #

Patch Set 3 : clang-format #

Total comments: 6

Patch Set 4 : use shift key #

Patch Set 5 : inline dtor #

Patch Set 6 : no inline #

Patch Set 7 : rebase #

Patch Set 8 : more rebase #

Patch Set 9 : fix rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -64 lines) Patch
M chrome/browser/nacl_host/nacl_file_host_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -49 lines 0 comments Download
M components/nacl.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A + components/nacl/common/test_nacl_browser_delegate.h View 1 2 3 4 5 6 7 2 chunks +20 lines, -15 lines 0 comments Download
A components/nacl/common/test_nacl_browser_delegate.cc View 1 2 3 4 5 6 7 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jvoung (off chromium)
7 years, 1 month ago (2013-10-29 23:23:02 UTC) #1
Mark Seaborn
LGTM, though I'm not sure what the motivation is. Maybe you could say a bit ...
7 years, 1 month ago (2013-10-31 02:36:37 UTC) #2
jvoung (off chromium)
Thanks -- updated the CL description a bit too. https://codereview.chromium.org/51323004/diff/190001/chrome/browser/nacl_host/nacl_file_host_unittest.cc File chrome/browser/nacl_host/nacl_file_host_unittest.cc (right): https://codereview.chromium.org/51323004/diff/190001/chrome/browser/nacl_host/nacl_file_host_unittest.cc#newcode23 chrome/browser/nacl_host/nacl_file_host_unittest.cc:23: ...
7 years, 1 month ago (2013-10-31 16:59:55 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/51323004/290001
7 years, 1 month ago (2013-10-31 17:19:22 UTC) #4
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-10-31 18:31:56 UTC) #5
darktears
On 2013/10/31 18:31:56, I haz the power (commit-bot) wrote: > Sorry for I got bad ...
7 years, 1 month ago (2013-11-04 21:01:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/51323004/490002
7 years, 1 month ago (2013-11-06 18:01:27 UTC) #7
commit-bot: I haz the power
Failed to apply patch for components/nacl/common/test_nacl_browser_delegate.h: While running patch -p1 --forward --force --no-backup-if-mismatch; A components/nacl/common/test_nacl_browser_delegate.h ...
7 years, 1 month ago (2013-11-06 18:01:41 UTC) #8
jvoung (off chromium)
On 2013/11/04 21:01:15, darktears wrote: > On 2013/10/31 18:31:56, I haz the power (commit-bot) wrote: ...
7 years, 1 month ago (2013-11-06 18:02:27 UTC) #9
darktears
On 2013/11/06 18:02:27, jvoung (cr) wrote: > On 2013/11/04 21:01:15, darktears wrote: > > On ...
7 years, 1 month ago (2013-11-06 18:10:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/51323004/870001
7 years, 1 month ago (2013-11-06 18:32:34 UTC) #11
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-11-06 18:58:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/51323004/870001
7 years, 1 month ago (2013-11-06 22:21:45 UTC) #13
commit-bot: I haz the power
7 years, 1 month ago (2013-11-06 22:45:08 UTC) #14
Message was sent while issue was closed.
Change committed as 233404

Powered by Google App Engine
This is Rietveld 408576698