diff options
author | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-16 04:28:02 +0000 |
---|---|---|
committer | dmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-16 04:28:02 +0000 |
commit | 2622d6ba235013928ae0ea9ac542678ac445d71a (patch) | |
tree | 46cabffc9ead9facce66c9a6d8c4760d23d4d2f8 /ppapi/tests/test_net_address_private.cc | |
parent | 4be70c824d3d9804b76e09051cf47ceae1cfc49c (diff) | |
download | chromium_src-2622d6ba235013928ae0ea9ac542678ac445d71a.zip chromium_src-2622d6ba235013928ae0ea9ac542678ac445d71a.tar.gz chromium_src-2622d6ba235013928ae0ea9ac542678ac445d71a.tar.bz2 |
Reland http://codereview.chromium.org/8477015
Landed at r109114, Reverted at r109142
Make it possible to enable/disable specific ppapi tests. Migrate PostMessage tests.
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
TEST=N/A
TBR=dmichael@chromium.org
Review URL: http://codereview.chromium.org/8536031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110248 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/tests/test_net_address_private.cc')
-rw-r--r-- | ppapi/tests/test_net_address_private.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ppapi/tests/test_net_address_private.cc b/ppapi/tests/test_net_address_private.cc index dc634ce..c3c0cec 100644 --- a/ppapi/tests/test_net_address_private.cc +++ b/ppapi/tests/test_net_address_private.cc @@ -58,12 +58,12 @@ bool TestNetAddressPrivate::Init() { return NetAddressPrivate::IsAvailable(); } -void TestNetAddressPrivate::RunTest() { - RUN_TEST(AreEqual); - RUN_TEST(AreHostsEqual); - RUN_TEST(Describe); - RUN_TEST(ReplacePort); - RUN_TEST(GetAnyAddress); +void TestNetAddressPrivate::RunTests(const std::string& filter) { + RUN_TEST(AreEqual, filter); + RUN_TEST(AreHostsEqual, filter); + RUN_TEST(Describe, filter); + RUN_TEST(ReplacePort, filter); + RUN_TEST(GetAnyAddress, filter); } std::string TestNetAddressPrivate::TestAreEqual() { |