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

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

Powered by Google App Engine
This is Rietveld 408576698