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

Side by Side Diff: ppapi/native_client/tests/ppapi_browser/extension_mime_handler/nacl.scons

Issue 7778012: Landing chrome side of nacl change pre-dating ppapi switch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Test loading a NaCl-enabled Chrome Extension. This also covers parts 6 # Test loading a NaCl-enabled Chrome Extension. This also covers parts
7 # of {ppb,ppp}_instance interfaces that are not testable any other way. 7 # of {ppb,ppp}_instance interfaces that are not testable any other way.
8 8
9 # The extension registers the nacl module as a content handler for 9 # The extension registers the nacl module as a content handler for
10 # application/pdf because it's easy to override that known type, but the 10 # application/pdf because it's easy to override that known type, but the
11 # actual file we use is a plain text file with a .pdf file extension. 11 # actual file we use is a plain text file with a .pdf file extension.
12 12
13 Import('env') 13 Import('env')
14 14
15 env.Prepend(CPPDEFINES=['XP_UNIX']) 15 env.Prepend(CPPDEFINES=['XP_UNIX'])
16 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' +
17 'extension_mime_handler')
16 18
17 nexe = 'ppapi_extension_mime_handler_%s' % env.get('TARGET_FULLARCH') 19 nexe = 'ppapi_extension_mime_handler_%s' % env.get('TARGET_FULLARCH')
18 20
19 env.ComponentProgram( 21 env.ComponentProgram(
20 nexe, 22 nexe,
21 ['ppapi_extension_mime_handler.cc'], 23 ['ppapi_extension_mime_handler.cc'],
22 EXTRA_LIBS=['${PPAPI_LIBS}', 24 EXTRA_LIBS=['${PPAPI_LIBS}',
23 'ppapi_test_lib', 25 'ppapi_test_lib',
24 'pthread', 26 'pthread',
25 'platform', 27 'platform',
26 'gio']) 28 'gio'])
27 29
28 # Copy the extension into place (as a subdir in the staging dir). 30 # Copy the extension into place (as a subdir in the staging dir).
29 dest_copy = env.Replicate('$STAGING_DIR/ppapi_extension_mime_handler', 31 dest_copy = env.Replicate('$STAGING_DIR/ppapi_extension_mime_handler',
30 ['ppapi_extension_mime_handler.nmf', 32 ['manifest.json',
31 'manifest.json',
32 env.File('$STAGING_DIR/' + nexe + '$PROGSUFFIX')]) 33 env.File('$STAGING_DIR/' + nexe + '$PROGSUFFIX')])
34 dest_copy.append(env.CopyLibsForExtension(
35 '$STAGING_DIR/ppapi_extension_mime_handler',
36 '$STAGING_DIR/ppapi_extension_mime_handler.nmf'))
33 37
34 env.Depends(env.Alias(nexe), dest_copy) 38 env.Depends(env.Alias(nexe), dest_copy)
35 39
36 # Publish the html,js, and pdf. 40 # Publish the html,js, and pdf.
37 env.Publish(nexe, 'run', 41 env.Publish(nexe, 'run',
38 ['ppapi_extension_mime_handler.html', 42 ['ppapi_extension_mime_handler.html',
39 'mime_test_data.pdf']) 43 'mime_test_data.pdf'])
40 44
41 node = env.PPAPIBrowserTester('ppapi_extension_mime_handler.out', 45 node = env.PPAPIBrowserTester('ppapi_extension_mime_handler.out',
42 url='ppapi_extension_mime_handler.html', 46 url='ppapi_extension_mime_handler.html',
47 nmf='${TEST_DIR}/ppapi_extension_mime_handler.nmf',
43 extensions=[env.Dir('$STAGING_DIR/ppapi_extension_mime_handler')], 48 extensions=[env.Dir('$STAGING_DIR/ppapi_extension_mime_handler')],
44 files=env.ExtractPublishedFiles(nexe)) 49 files=env.ExtractPublishedFiles(nexe))
45 50
46 env.Depends(node, dest_copy) 51 env.Depends(node, dest_copy)
47 52
48 env.AddNodeToTestSuite(node, 53 env.AddNodeToTestSuite(node,
49 ['chrome_browser_tests'], 54 ['chrome_browser_tests'],
50 'run_ppapi_extension_mime_handler_browser_test', 55 'run_ppapi_extension_mime_handler_browser_test',
51 is_broken=env.PPAPIBrowserTesterIsBroken()) 56 is_broken=env.PPAPIBrowserTesterIsBroken())
OLDNEW
« no previous file with comments | « ppapi/native_client/tests/ppapi_browser/crash/nacl.scons ('k') | ppapi/native_client/tests/ppapi_browser/manifest/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698