summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-10 22:37:54 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-10 22:37:54 +0000
commit87dd4fd367a509bb7ecf2df40d1d8d52f12af152 (patch)
treeece630d4a8c056c30f15cada546aff49cae004f8 /gpu
parentf89e9a5f975a31b94722910370863aa448cc6a11 (diff)
downloadchromium_src-87dd4fd367a509bb7ecf2df40d1d8d52f12af152.zip
chromium_src-87dd4fd367a509bb7ecf2df40d1d8d52f12af152.tar.gz
chromium_src-87dd4fd367a509bb7ecf2df40d1d8d52f12af152.tar.bz2
Hard code number of auto generated command buffer unit
tests per file so that tests do not move from file to file. The problem is gles2_cmd_decoder_n_unittest_autogen.h is dependent on gles2_cmd_decoder_n_unittest.cc So if a test moves to another generated file then the things it depends on do not move withit. TEST=none BUG=65400 Review URL: http://codereview.chromium.org/5686003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68897 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rwxr-xr-xgpu/command_buffer/build_gles2_cmd_buffer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gpu/command_buffer/build_gles2_cmd_buffer.py b/gpu/command_buffer/build_gles2_cmd_buffer.py
index d6e4661..a3dabb2 100755
--- a/gpu/command_buffer/build_gles2_cmd_buffer.py
+++ b/gpu/command_buffer/build_gles2_cmd_buffer.py
@@ -5137,16 +5137,16 @@ class GLGenerator(object):
def WriteServiceUnitTests(self, filename):
"""Writes the service decorder unit tests."""
num_tests = len(self.functions)
- step = (num_tests + 1) / 2
+ FUNCTIONS_PER_FILE = 98 # hard code this so it doesn't change.
count = 0
- for test_num in range(0, num_tests, step):
+ for test_num in range(0, num_tests, FUNCTIONS_PER_FILE):
count += 1
name = filename % count
file = CHeaderWriter(
name,
"// It is included by gles2_cmd_decoder_unittest_%d.cc\n" % count)
file.SetFileNum(count)
- end = test_num + step
+ end = test_num + FUNCTIONS_PER_FILE
if end > num_tests:
end = num_tests
for idx in range(test_num, end):