OLD | NEW |
(Empty) | |
| 1 # -*- python -*- |
| 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 |
| 4 # found in the LICENSE file. |
| 5 # |
| 6 # This test uses ppapi_test_lib. |
| 7 |
| 8 Import('env') |
| 9 |
| 10 env.Prepend(CPPDEFINES=['XP_UNIX']) |
| 11 |
| 12 nexe = 'ppapi_ppb_url_loader_%s' % env.get('TARGET_FULLARCH') |
| 13 env.Alias('ppapi_ppb_url_loader${PROGSUFFIX}', |
| 14 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) |
| 15 |
| 16 env.ComponentProgram(nexe, |
| 17 ['ppapi_ppb_url_loader.cc'], |
| 18 EXTRA_LIBS=['${PPAPI_LIBS}', |
| 19 'ppapi_test_lib', |
| 20 'platform', |
| 21 'pthread', |
| 22 'gio']) |
| 23 |
| 24 env.Publish(nexe, 'run', |
| 25 ['ppapi_ppb_url_loader.html', |
| 26 'ppapi_ppb_url_loader.nmf', |
| 27 'ppapi_ppb_url_loader.js', |
| 28 'ppapi_ppb_url_loader.txt']) |
| 29 |
| 30 node = env.PPAPIBrowserTester('ppapi_ppb_url_loader_browser_test.out', |
| 31 url='ppapi_ppb_url_loader.html', |
| 32 files=env.ExtractPublishedFiles(nexe), |
| 33 args=['--allow_404', |
| 34 '--redirect_url', |
| 35 '/redirect-to-existing.txt', |
| 36 '/ppapi_ppb_url_loader.txt'], |
| 37 browser_flags=['--enable-pepper-testing']) |
| 38 |
| 39 env.AddNodeToTestSuite(node, |
| 40 ['chrome_browser_tests'], |
| 41 'run_ppapi_ppb_url_loader_browser_test', |
| 42 is_broken=env.PPAPIBrowserTesterIsBroken()) |
OLD | NEW |