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

Unified Diff: chrome/test/ppapi/ppapi_browsertest.cc

Issue 12377028: PPAPI: Convert more tests to run in 1 fixture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops, run untrusted tests on NaCl Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/ppapi/ppapi_browsertest.cc
diff --git a/chrome/test/ppapi/ppapi_browsertest.cc b/chrome/test/ppapi/ppapi_browsertest.cc
index 26ca8413af0dda7b76451e1c50fc17f9f4a07fbd..2026056854162bf3cb218ae978ec7816e591fee9 100644
--- a/chrome/test/ppapi/ppapi_browsertest.cc
+++ b/chrome/test/ppapi/ppapi_browsertest.cc
@@ -661,53 +661,107 @@ TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(DirectoryReader)
// runs in process, so there's currently no need for a proxy.
TEST_PPAPI_IN_PROCESS(UMA)
-TEST_PPAPI_IN_PROCESS(NetAddressPrivate_AreEqual)
-TEST_PPAPI_IN_PROCESS(NetAddressPrivate_AreHostsEqual)
-TEST_PPAPI_IN_PROCESS(NetAddressPrivate_Describe)
-TEST_PPAPI_IN_PROCESS(NetAddressPrivate_ReplacePort)
-TEST_PPAPI_IN_PROCESS(NetAddressPrivate_GetAnyAddress)
-TEST_PPAPI_IN_PROCESS(NetAddressPrivate_DescribeIPv6)
-TEST_PPAPI_IN_PROCESS(NetAddressPrivate_GetFamily)
-TEST_PPAPI_IN_PROCESS(NetAddressPrivate_GetPort)
-TEST_PPAPI_IN_PROCESS(NetAddressPrivate_GetAddress)
-TEST_PPAPI_IN_PROCESS(NetAddressPrivate_GetScopeID)
-TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_AreEqual)
-TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_AreHostsEqual)
-TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_Describe)
-TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_ReplacePort)
-TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_GetAnyAddress)
-TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_DescribeIPv6)
-TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_GetFamily)
-TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_GetPort)
-TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_GetAddress)
-TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_GetScopeID)
-
-TEST_PPAPI_NACL(NetAddressPrivateUntrusted_AreEqual)
-TEST_PPAPI_NACL(NetAddressPrivateUntrusted_AreHostsEqual)
-TEST_PPAPI_NACL(NetAddressPrivateUntrusted_Describe)
-TEST_PPAPI_NACL(NetAddressPrivateUntrusted_ReplacePort)
-TEST_PPAPI_NACL(NetAddressPrivateUntrusted_GetAnyAddress)
-TEST_PPAPI_NACL(NetAddressPrivateUntrusted_GetFamily)
-TEST_PPAPI_NACL(NetAddressPrivateUntrusted_GetPort)
-TEST_PPAPI_NACL(NetAddressPrivateUntrusted_GetAddress)
-
-TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_Basic)
-TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_2Monitors)
-TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_DeleteInCallback)
-TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_ListObserver)
-TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_Basic)
-TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_2Monitors)
-TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_DeleteInCallback)
-TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_ListObserver)
-TEST_PPAPI_NACL(NetworkMonitorPrivate_Basic)
-TEST_PPAPI_NACL(NetworkMonitorPrivate_2Monitors)
-TEST_PPAPI_NACL(NetworkMonitorPrivate_DeleteInCallback)
-TEST_PPAPI_NACL(NetworkMonitorPrivate_ListObserver)
-
-TEST_PPAPI_IN_PROCESS(Flash_SetInstanceAlwaysOnTop)
-TEST_PPAPI_IN_PROCESS(Flash_GetCommandLineArgs)
-TEST_PPAPI_OUT_OF_PROCESS(Flash_SetInstanceAlwaysOnTop)
-TEST_PPAPI_OUT_OF_PROCESS(Flash_GetCommandLineArgs)
+// NetAddress tests
+IN_PROC_BROWSER_TEST_F(PPAPITest, NetAddress) {
+ RunTestViaHTTP(
+ LIST_TEST(NetAddressPrivate_AreEqual)
+ LIST_TEST(NetAddressPrivate_AreHostsEqual)
+ LIST_TEST(NetAddressPrivate_Describe)
+ LIST_TEST(NetAddressPrivate_ReplacePort)
+ LIST_TEST(NetAddressPrivate_GetAnyAddress)
+ LIST_TEST(NetAddressPrivate_DescribeIPv6)
+ LIST_TEST(NetAddressPrivate_GetFamily)
+ LIST_TEST(NetAddressPrivate_GetPort)
+ LIST_TEST(NetAddressPrivate_GetAddress)
+ LIST_TEST(NetAddressPrivate_GetScopeID)
+ );
+}
+IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, NetAddress) {
+ RunTestViaHTTP(
+ LIST_TEST(NetAddressPrivate_AreEqual)
+ LIST_TEST(NetAddressPrivate_AreHostsEqual)
+ LIST_TEST(NetAddressPrivate_Describe)
+ LIST_TEST(NetAddressPrivate_ReplacePort)
+ LIST_TEST(NetAddressPrivate_GetAnyAddress)
+ LIST_TEST(NetAddressPrivate_DescribeIPv6)
+ LIST_TEST(NetAddressPrivate_GetFamily)
+ LIST_TEST(NetAddressPrivate_GetPort)
+ LIST_TEST(NetAddressPrivate_GetAddress)
+ LIST_TEST(NetAddressPrivate_GetScopeID)
+ );
+}
+IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, NetAddress) {
+ RunTestViaHTTP(
+ LIST_TEST(NetAddressPrivateUntrusted_AreEqual)
+ LIST_TEST(NetAddressPrivateUntrusted_AreHostsEqual)
+ LIST_TEST(NetAddressPrivateUntrusted_Describe)
+ LIST_TEST(NetAddressPrivateUntrusted_ReplacePort)
+ LIST_TEST(NetAddressPrivateUntrusted_GetAnyAddress)
+ LIST_TEST(NetAddressPrivateUntrusted_GetFamily)
+ LIST_TEST(NetAddressPrivateUntrusted_GetPort)
+ LIST_TEST(NetAddressPrivateUntrusted_GetAddress)
+ );
+}
+IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(NetAddress)) {
+ RunTestViaHTTP(
+ LIST_TEST(NetAddressPrivateUntrusted_AreEqual)
+ LIST_TEST(NetAddressPrivateUntrusted_AreHostsEqual)
+ LIST_TEST(NetAddressPrivateUntrusted_Describe)
+ LIST_TEST(NetAddressPrivateUntrusted_ReplacePort)
+ LIST_TEST(NetAddressPrivateUntrusted_GetAnyAddress)
+ LIST_TEST(NetAddressPrivateUntrusted_GetFamily)
+ LIST_TEST(NetAddressPrivateUntrusted_GetPort)
+ LIST_TEST(NetAddressPrivateUntrusted_GetAddress)
+ );
+}
+
+// NetworkMonitor tests.
+IN_PROC_BROWSER_TEST_F(PPAPITest, NetworkMonitor) {
+ RunTestViaHTTP(
+ LIST_TEST(NetworkMonitorPrivate_Basic)
+ LIST_TEST(NetworkMonitorPrivate_2Monitors)
+ LIST_TEST(NetworkMonitorPrivate_DeleteInCallback)
+ LIST_TEST(NetworkMonitorPrivate_ListObserver)
+ );
+}
+IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, NetworkMonitor) {
+ RunTestViaHTTP(
+ LIST_TEST(NetworkMonitorPrivate_Basic)
+ LIST_TEST(NetworkMonitorPrivate_2Monitors)
+ LIST_TEST(NetworkMonitorPrivate_DeleteInCallback)
+ LIST_TEST(NetworkMonitorPrivate_ListObserver)
+ );
+}
+IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, NetworkMonitor) {
+ RunTestViaHTTP(
+ LIST_TEST(NetworkMonitorPrivate_Basic)
+ LIST_TEST(NetworkMonitorPrivate_2Monitors)
+ LIST_TEST(NetworkMonitorPrivate_DeleteInCallback)
+ LIST_TEST(NetworkMonitorPrivate_ListObserver)
+ );
+}
+IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(NetworkMonitor)) {
+ RunTestViaHTTP(
+ LIST_TEST(NetworkMonitorPrivate_Basic)
+ LIST_TEST(NetworkMonitorPrivate_2Monitors)
+ LIST_TEST(NetworkMonitorPrivate_DeleteInCallback)
+ LIST_TEST(NetworkMonitorPrivate_ListObserver)
+ );
+}
+
+// Flash tests.
+IN_PROC_BROWSER_TEST_F(PPAPITest, Flash) {
+ RunTestViaHTTP(
+ LIST_TEST(Flash_SetInstanceAlwaysOnTop)
+ LIST_TEST(Flash_GetCommandLineArgs)
+ );
+}
+IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, Flash) {
+ RunTestViaHTTP(
+ LIST_TEST(Flash_SetInstanceAlwaysOnTop)
+ LIST_TEST(Flash_GetCommandLineArgs)
+ );
+}
// In-process WebSocket tests
IN_PROC_BROWSER_TEST_F(PPAPITest, WebSocket) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698