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 is a pepper audio example from examples/audio. |
| 7 |
| 8 Import('env') |
| 9 |
| 10 env.Prepend(CPPDEFINES=['XP_UNIX']) |
| 11 |
| 12 nexe_name = 'ppapi_example_audio_%s' % env.get('TARGET_FULLARCH') |
| 13 nexe = env.ComponentProgram(nexe_name, |
| 14 [ 'audio.cc' ], |
| 15 EXTRA_LIBS=['${PPAPI_LIBS}', |
| 16 'ppapi_cpp', |
| 17 'platform', |
| 18 'gio', |
| 19 'pthread', |
| 20 'm']) |
| 21 |
| 22 # Note that the html is required to run this program. |
| 23 env.Publish(nexe_name, 'run', |
| 24 ['ppapi_example_audio.html' , 'ppapi_example_audio.nmf']) |
| 25 |
| 26 test = env.PPAPIBrowserTester('ppapi_example_audio_test.out', |
| 27 url='ppapi_example_audio.html#mute', |
| 28 files=[nexe, |
| 29 env.File('ppapi_example_audio.nmf'), |
| 30 env.File('ppapi_example_audio.html')]) |
| 31 |
| 32 # Though this tests passes locally, it does not pass on the Windows |
| 33 # and Linux buildbots, which do not have audio devices. Although |
| 34 # StartPlayback() and StopPlayback() succeed, the audio callback is |
| 35 # not called. However, this does work on the Mac buildbots. |
| 36 is_broken = env.PPAPIBrowserTesterIsBroken() or not env.Bit('host_mac') |
| 37 env.AddNodeToTestSuite(test, |
| 38 ['chrome_browser_tests'], |
| 39 'run_ppapi_example_audio_test', |
| 40 is_broken=is_broken) |
OLD | NEW |