OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2009 The Native Client Authors. All rights reserved. Use | 2 # Copyright 2009 The Native Client Authors. All rights reserved. Use |
3 # of this source code is governed by a BSD-style license that can be | 3 # 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 Import('env') | 6 Import('env') |
7 | 7 |
8 if 'TRUSTED_ENV' not in env: | 8 if 'TRUSTED_ENV' not in env: |
9 Return() | 9 Return() |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 'fake_file_ref.cc', | 60 'fake_file_ref.cc', |
61 'fake_host.cc', | 61 'fake_host.cc', |
62 'fake_instance.cc', | 62 'fake_instance.cc', |
63 'fake_object.cc', | 63 'fake_object.cc', |
64 'fake_resource.cc', | 64 'fake_resource.cc', |
65 'fake_url_loader.cc', | 65 'fake_url_loader.cc', |
66 'fake_url_request_info.cc', | 66 'fake_url_request_info.cc', |
67 'fake_url_response_info.cc', | 67 'fake_url_response_info.cc', |
68 'fake_window.cc', | 68 'fake_window.cc', |
69 'main.cc', | 69 'main.cc', |
70 'test_scriptable.cc']) | 70 'test_scriptable.cc', |
| 71 'utility.cc']) |
71 | 72 |
72 ppapi_basic_object_nexe = env.File('${STAGING_DIR}/ppapi_basic_object.nexe') | 73 ppapi_basic_object_nexe = env.File('${STAGING_DIR}/ppapi_basic_object.nexe') |
73 | 74 |
74 if trusted_env.Bit('mac'): | 75 if trusted_env.Bit('mac'): |
75 plugin = trusted_env.File('${STAGING_DIR}/ppNaClPlugin') | 76 plugin = trusted_env.File('${STAGING_DIR}/ppNaClPlugin') |
76 else: | 77 else: |
77 plugin = trusted_env.File('${STAGING_DIR}/${SHLIBPREFIX}' | 78 plugin = trusted_env.File('${STAGING_DIR}/${SHLIBPREFIX}' |
78 'ppNaClPlugin${SHLIBSUFFIX}') | 79 'ppNaClPlugin${SHLIBSUFFIX}') |
79 sel_ldr = trusted_env.File('${STAGING_DIR}/${PROGPREFIX}sel_ldr${PROGSUFFIX}') | 80 sel_ldr = trusted_env.File('${STAGING_DIR}/${PROGPREFIX}sel_ldr${PROGSUFFIX}') |
80 log_file = env.File('fake_browser_ppapi.out').abspath | 81 log_file = env.File('fake_browser_ppapi.out').abspath |
81 | 82 |
82 node = env.CommandTest('fake_browser_ppapi.out', | 83 node = env.CommandTest('fake_browser_ppapi.out', |
83 [fake_browser, | 84 [fake_browser, |
84 plugin, | 85 plugin, |
85 'http://localhost:5103/basic_object.html', | 86 'http://localhost:5103/basic_object.html', |
86 # Must use relative nexe url for the test to work. | 87 # Must use relative nexe url for the test to work. |
87 # See TODO in URLLoader::FinishStreamingToFile(). | 88 # See TODO in URLLoader::FinishStreamingToFile(). |
88 '"id=nacl_module;src=ppapi_basic_object.nexe"', | 89 '"id=nacl_module;src=ppapi_basic_object.nexe"', |
89 '${STAGING_DIR}' | 90 '${STAGING_DIR}' |
90 ], | 91 ], |
91 'medium', | 92 'medium', |
92 osenv=('NACL_SEL_LDR=%s,NACLLOG=%s' | 93 osenv=('NACL_SEL_LDR=%s,NACLLOG=%s' |
93 % (sel_ldr, log_file)), | 94 % (sel_ldr, log_file)), |
94 extra_deps=[sel_ldr, ppapi_basic_object_nexe]) | 95 extra_deps=[sel_ldr, ppapi_basic_object_nexe]) |
95 | 96 |
96 env.AddNodeToTestSuite(node, ['medium_tests'], 'run_fake_browser_ppapi_test') | 97 env.AddNodeToTestSuite(node, ['medium_tests'], 'run_fake_browser_ppapi_test') |
OLD | NEW |