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

Side by Side Diff: ppapi/native_client/tests/ppapi_test_example/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
« no previous file with comments | « ppapi/native_client/tests/ppapi_messaging/nacl.scons ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 test demonstrates sample usage of ppapi_test_lib. 6 # This test demonstrates sample usage of ppapi_test_lib.
7 # 7 #
8 # These ppapi_test_lib/ headers should be used by the test setup: 8 # These ppapi_test_lib/ headers should be used by the test setup:
9 # test_interface.h - test interface + setup to be implemented by the tester. 9 # test_interface.h - test interface + setup to be implemented by the tester.
10 # get_browser_interface.h - provides getters for proxy-supported interfaces. 10 # get_browser_interface.h - provides getters for proxy-supported interfaces.
11 # 11 #
12 # ppapi_test_example.cc - sample implementation test_interface.h. 12 # ppapi_test_example.cc - sample implementation test_interface.h.
13 # ppapi_test_example.html - sample test driver that uses scripting. 13 # ppapi_test_example.html - sample test driver that uses scripting.
14 # ppapi_test_example.js - setup for sample test driver. 14 # ppapi_test_example.js - setup for sample test driver.
15 # ppapi_test_example.nmf - sample manifest for platform-specific nexes. 15 # ppapi_test_example.nmf - sample manifest for platform-specific nexes.
16 16
17 Import('env') 17 Import('env')
18 18
19 env.Prepend(CPPDEFINES=['XP_UNIX']) 19 env.Prepend(CPPDEFINES=['XP_UNIX'])
20 env.Replace(TEST_DIR='${SOURCE_ROOT}/ppapi/native_client/tests/' +
21 'ppapi_test_example/')
20 22
21 nexe = 'ppapi_test_example_%s' % env.get('TARGET_FULLARCH') 23 nexe = 'ppapi_test_example_%s' % env.get('TARGET_FULLARCH')
22 env.Alias('ppapi_test_example${PROGSUFFIX}', 24 env.Alias('ppapi_test_example${PROGSUFFIX}',
23 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe]) 25 ['$STAGING_DIR/%s${PROGSUFFIX}' % nexe])
24 26
25 ppapi_test_example_nexe = env.ComponentProgram( 27 ppapi_test_example_nexe = env.ComponentProgram(
26 nexe, 28 nexe,
27 ['ppapi_test_example.cc'], 29 ['ppapi_test_example.cc'],
28 EXTRA_LIBS=['${PPAPI_LIBS}', 30 EXTRA_LIBS=['${PPAPI_LIBS}',
29 'ppapi_test_lib', 31 'ppapi_test_lib',
30 'platform', # for CHECK 32 'platform', # for CHECK
31 'pthread', 33 'pthread',
32 'gio', 34 'gio',
33 ]) 35 ])
34 36
35 env.Publish(nexe, 'run', 37 env.Publish(nexe, 'run',
36 ['ppapi_test_example.html', 38 ['ppapi_test_example.html',
37 'ppapi_test_example.nmf',
38 'ppapi_test_example.js']) 39 'ppapi_test_example.js'])
39 40
40 node = env.PPAPIBrowserTester('ppapi_test_example_browser_test.out', 41 node = env.PPAPIBrowserTester('ppapi_test_example_browser_test.out',
41 url='ppapi_test_example.html', 42 url='ppapi_test_example.html',
43 nmf='${TEST_DIR}/ppapi_test_example.nmf',
42 files=env.ExtractPublishedFiles(nexe)) 44 files=env.ExtractPublishedFiles(nexe))
43 45
44 env.AddNodeToTestSuite(node, 46 env.AddNodeToTestSuite(node,
45 ['chrome_browser_tests'], 47 ['chrome_browser_tests'],
46 'run_ppapi_test_example_browser_test', 48 'run_ppapi_test_example_browser_test',
47 is_broken=env.PPAPIBrowserTesterIsBroken()) 49 is_broken=env.PPAPIBrowserTesterIsBroken())
OLDNEW
« no previous file with comments | « ppapi/native_client/tests/ppapi_messaging/nacl.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698