From 3f364cbe2565b02b0cf24e09b65638e40d352697 Mon Sep 17 00:00:00 2001 From: "dmichael@chromium.org" Date: Tue, 8 Nov 2011 22:37:28 +0000 Subject: Make it possible to enable/disable specific ppapi tests. Migrate PostMessage tests. Most of these files were changed by a sed script, so it's not as bad as it looks. The testcase attribute now can include a 'filter'. If it's omitted, everything works the same as before. This way we can migrate tests over bit-by-bit if we want to. We can also still run the tests manually the same way as before. This only runs PostMessage testss the new way, and re-enables all oop PostMessage tests that pass on Windows. I can do the other tests in this CL if desired, but it might be easier to land in a few pieces. BUG=102885,95557 TEST=N/A Review URL: http://codereview.chromium.org/8477015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109114 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/tests/test_file_io.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ppapi/tests/test_file_io.cc') diff --git a/ppapi/tests/test_file_io.cc b/ppapi/tests/test_file_io.cc index d245b87..79995ff 100644 --- a/ppapi/tests/test_file_io.cc +++ b/ppapi/tests/test_file_io.cc @@ -111,15 +111,15 @@ bool TestFileIO::Init() { return InitTestingInterface() && EnsureRunningOverHTTP(); } -void TestFileIO::RunTest() { - RUN_TEST_FORCEASYNC_AND_NOT(Open); - RUN_TEST_FORCEASYNC_AND_NOT(ReadWriteSetLength); - RUN_TEST_FORCEASYNC_AND_NOT(TouchQuery); - RUN_TEST_FORCEASYNC_AND_NOT(AbortCalls); - RUN_TEST_FORCEASYNC_AND_NOT(ParallelReads); - RUN_TEST_FORCEASYNC_AND_NOT(ParallelWrites); - RUN_TEST_FORCEASYNC_AND_NOT(NotAllowMixedReadWrite); - RUN_TEST_FORCEASYNC_AND_NOT(WillWriteWillSetLength); +void TestFileIO::RunTests(const std::string& filter) { + RUN_TEST_FORCEASYNC_AND_NOT(Open, filter); + RUN_TEST_FORCEASYNC_AND_NOT(ReadWriteSetLength, filter); + RUN_TEST_FORCEASYNC_AND_NOT(TouchQuery, filter); + RUN_TEST_FORCEASYNC_AND_NOT(AbortCalls, filter); + RUN_TEST_FORCEASYNC_AND_NOT(ParallelReads, filter); + RUN_TEST_FORCEASYNC_AND_NOT(ParallelWrites, filter); + RUN_TEST_FORCEASYNC_AND_NOT(NotAllowMixedReadWrite, filter); + RUN_TEST_FORCEASYNC_AND_NOT(WillWriteWillSetLength, filter); // TODO(viettrungluu): add tests: // - that PP_ERROR_PENDING is correctly returned -- cgit v1.1