OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 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 foo/bar. | 9 # The extension registers the nacl module as a content handler for foo/bar. |
10 | 10 |
11 Import('env') | 11 Import('env') |
12 | 12 |
13 # TODO(jvoung): Make a pnacl version of the nmf / or make the pexe generator | |
14 # compatible with CopyLibsForExtension(). | |
15 if env.Bit('pnacl_generate_pexe'): | |
16 Return() | |
17 | |
18 env.Prepend(CPPDEFINES=['XP_UNIX']) | 13 env.Prepend(CPPDEFINES=['XP_UNIX']) |
19 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' + | 14 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/ppapi_browser/' + |
20 'extension_mime_handler') | 15 'extension_mime_handler') |
21 | 16 |
22 nexe = env.ProgramNameForNmf('ppapi_extension_mime_handler') | 17 nexe = env.ProgramNameForNmf('ppapi_extension_mime_handler') |
23 | 18 |
24 env.ComponentProgram( | 19 env.ComponentProgram( |
25 nexe, | 20 nexe, |
26 ['ppapi_extension_mime_handler.cc'], | 21 ['ppapi_extension_mime_handler.cc'], |
27 EXTRA_LIBS=['ppapi', | 22 EXTRA_LIBS=['ppapi', |
(...skipping 23 matching lines...) Expand all Loading... |
51 extensions=[env.Dir('$STAGING_DIR/ppapi_extension_mime_handler')], | 46 extensions=[env.Dir('$STAGING_DIR/ppapi_extension_mime_handler')], |
52 mime_types=[('dat', 'foo/bar')], | 47 mime_types=[('dat', 'foo/bar')], |
53 files=env.ExtractPublishedFiles(nexe)) | 48 files=env.ExtractPublishedFiles(nexe)) |
54 | 49 |
55 env.Depends(node, dest_copy) | 50 env.Depends(node, dest_copy) |
56 | 51 |
57 env.AddNodeToTestSuite(node, | 52 env.AddNodeToTestSuite(node, |
58 ['chrome_browser_tests'], | 53 ['chrome_browser_tests'], |
59 'run_ppapi_extension_mime_handler_browser_test', | 54 'run_ppapi_extension_mime_handler_browser_test', |
60 is_broken=env.PPAPIBrowserTesterIsBroken()) | 55 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |