Move most of TestNaClBrowserDelegate to another file.
commit9c194eb99aeb9efd739b7e10c3cd9e067b84e6d8
authorjvoung@chromium.org <jvoung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 6 Nov 2013 22:45:04 +0000 (6 22:45 +0000)
committerjvoung@chromium.org <jvoung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 6 Nov 2013 22:45:04 +0000 (6 22:45 +0000)
treeb2c4a4a0cd12109519dfb5652cdb148121d90430
parent1367bd6325642026ff6ac0a55a0f0e9fa9bda5ad
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)

Review URL: https://codereview.chromium.org/51323004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233404 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/nacl_host/nacl_file_host_unittest.cc
components/nacl.gyp
components/nacl/common/test_nacl_browser_delegate.cc [new file with mode: 0644]
components/nacl/common/test_nacl_browser_delegate.h [new file with mode: 0644]