summaryrefslogtreecommitdiffstats
path: root/ppapi/tests/test_file_ref.cc
diff options
context:
space:
mode:
authordmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-08 22:37:28 +0000
committerdmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-08 22:37:28 +0000
commit3f364cbe2565b02b0cf24e09b65638e40d352697 (patch)
tree1fbd0d1fbd640f337bc5827a82fa50b0bb637cb9 /ppapi/tests/test_file_ref.cc
parent0368e3967bd1b3191257895cfc4a042b01980525 (diff)
downloadchromium_src-3f364cbe2565b02b0cf24e09b65638e40d352697.zip
chromium_src-3f364cbe2565b02b0cf24e09b65638e40d352697.tar.gz
chromium_src-3f364cbe2565b02b0cf24e09b65638e40d352697.tar.bz2
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
Diffstat (limited to 'ppapi/tests/test_file_ref.cc')
-rw-r--r--ppapi/tests/test_file_ref.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/ppapi/tests/test_file_ref.cc b/ppapi/tests/test_file_ref.cc
index d6b3b36..b17450d 100644
--- a/ppapi/tests/test_file_ref.cc
+++ b/ppapi/tests/test_file_ref.cc
@@ -44,16 +44,16 @@ bool TestFileRef::Init() {
return InitTestingInterface() && EnsureRunningOverHTTP();
}
-void TestFileRef::RunTest() {
- RUN_TEST_FORCEASYNC_AND_NOT(Create);
- RUN_TEST_FORCEASYNC_AND_NOT(GetFileSystemType);
- RUN_TEST_FORCEASYNC_AND_NOT(GetName);
- RUN_TEST_FORCEASYNC_AND_NOT(GetPath);
- RUN_TEST_FORCEASYNC_AND_NOT(GetParent);
- RUN_TEST_FORCEASYNC_AND_NOT(MakeDirectory);
- RUN_TEST_FORCEASYNC_AND_NOT(QueryAndTouchFile);
- RUN_TEST_FORCEASYNC_AND_NOT(DeleteFileAndDirectory);
- RUN_TEST_FORCEASYNC_AND_NOT(RenameFileAndDirectory);
+void TestFileRef::RunTests(const std::string& filter) {
+ RUN_TEST_FORCEASYNC_AND_NOT(Create, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(GetFileSystemType, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(GetName, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(GetPath, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(GetParent, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(MakeDirectory, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(QueryAndTouchFile, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(DeleteFileAndDirectory, filter);
+ RUN_TEST_FORCEASYNC_AND_NOT(RenameFileAndDirectory, filter);
}
std::string TestFileRef::TestCreate() {