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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/test/ppapi/ppapi_test.h" 5 #include "chrome/test/ppapi/ppapi_test.h"
6 6
7 #include "base/test/test_timeouts.h" 7 #include "base/test/test_timeouts.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 654
655 TEST_PPAPI_IN_PROCESS(X509CertificatePrivate) 655 TEST_PPAPI_IN_PROCESS(X509CertificatePrivate)
656 TEST_PPAPI_OUT_OF_PROCESS(X509CertificatePrivate) 656 TEST_PPAPI_OUT_OF_PROCESS(X509CertificatePrivate)
657 657
658 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(DirectoryReader) 658 TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(DirectoryReader)
659 659
660 // There is no proxy. This is used for PDF metrics reporting, and PDF only 660 // There is no proxy. This is used for PDF metrics reporting, and PDF only
661 // runs in process, so there's currently no need for a proxy. 661 // runs in process, so there's currently no need for a proxy.
662 TEST_PPAPI_IN_PROCESS(UMA) 662 TEST_PPAPI_IN_PROCESS(UMA)
663 663
664 TEST_PPAPI_IN_PROCESS(NetAddressPrivate_AreEqual) 664 // NetAddress tests
665 TEST_PPAPI_IN_PROCESS(NetAddressPrivate_AreHostsEqual) 665 IN_PROC_BROWSER_TEST_F(PPAPITest, NetAddress) {
666 TEST_PPAPI_IN_PROCESS(NetAddressPrivate_Describe) 666 RunTestViaHTTP(
667 TEST_PPAPI_IN_PROCESS(NetAddressPrivate_ReplacePort) 667 LIST_TEST(NetAddressPrivate_AreEqual)
668 TEST_PPAPI_IN_PROCESS(NetAddressPrivate_GetAnyAddress) 668 LIST_TEST(NetAddressPrivate_AreHostsEqual)
669 TEST_PPAPI_IN_PROCESS(NetAddressPrivate_DescribeIPv6) 669 LIST_TEST(NetAddressPrivate_Describe)
670 TEST_PPAPI_IN_PROCESS(NetAddressPrivate_GetFamily) 670 LIST_TEST(NetAddressPrivate_ReplacePort)
671 TEST_PPAPI_IN_PROCESS(NetAddressPrivate_GetPort) 671 LIST_TEST(NetAddressPrivate_GetAnyAddress)
672 TEST_PPAPI_IN_PROCESS(NetAddressPrivate_GetAddress) 672 LIST_TEST(NetAddressPrivate_DescribeIPv6)
673 TEST_PPAPI_IN_PROCESS(NetAddressPrivate_GetScopeID) 673 LIST_TEST(NetAddressPrivate_GetFamily)
674 TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_AreEqual) 674 LIST_TEST(NetAddressPrivate_GetPort)
675 TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_AreHostsEqual) 675 LIST_TEST(NetAddressPrivate_GetAddress)
676 TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_Describe) 676 LIST_TEST(NetAddressPrivate_GetScopeID)
677 TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_ReplacePort) 677 );
678 TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_GetAnyAddress) 678 }
679 TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_DescribeIPv6) 679 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, NetAddress) {
680 TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_GetFamily) 680 RunTestViaHTTP(
681 TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_GetPort) 681 LIST_TEST(NetAddressPrivate_AreEqual)
682 TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_GetAddress) 682 LIST_TEST(NetAddressPrivate_AreHostsEqual)
683 TEST_PPAPI_OUT_OF_PROCESS(NetAddressPrivate_GetScopeID) 683 LIST_TEST(NetAddressPrivate_Describe)
684 LIST_TEST(NetAddressPrivate_ReplacePort)
685 LIST_TEST(NetAddressPrivate_GetAnyAddress)
686 LIST_TEST(NetAddressPrivate_DescribeIPv6)
687 LIST_TEST(NetAddressPrivate_GetFamily)
688 LIST_TEST(NetAddressPrivate_GetPort)
689 LIST_TEST(NetAddressPrivate_GetAddress)
690 LIST_TEST(NetAddressPrivate_GetScopeID)
691 );
692 }
693 IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, NetAddress) {
694 RunTestViaHTTP(
695 LIST_TEST(NetAddressPrivateUntrusted_AreEqual)
696 LIST_TEST(NetAddressPrivateUntrusted_AreHostsEqual)
697 LIST_TEST(NetAddressPrivateUntrusted_Describe)
698 LIST_TEST(NetAddressPrivateUntrusted_ReplacePort)
699 LIST_TEST(NetAddressPrivateUntrusted_GetAnyAddress)
700 LIST_TEST(NetAddressPrivateUntrusted_GetFamily)
701 LIST_TEST(NetAddressPrivateUntrusted_GetPort)
702 LIST_TEST(NetAddressPrivateUntrusted_GetAddress)
703 );
704 }
705 IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(NetAddress)) {
706 RunTestViaHTTP(
707 LIST_TEST(NetAddressPrivateUntrusted_AreEqual)
708 LIST_TEST(NetAddressPrivateUntrusted_AreHostsEqual)
709 LIST_TEST(NetAddressPrivateUntrusted_Describe)
710 LIST_TEST(NetAddressPrivateUntrusted_ReplacePort)
711 LIST_TEST(NetAddressPrivateUntrusted_GetAnyAddress)
712 LIST_TEST(NetAddressPrivateUntrusted_GetFamily)
713 LIST_TEST(NetAddressPrivateUntrusted_GetPort)
714 LIST_TEST(NetAddressPrivateUntrusted_GetAddress)
715 );
716 }
684 717
685 TEST_PPAPI_NACL(NetAddressPrivateUntrusted_AreEqual) 718 // NetworkMonitor tests.
686 TEST_PPAPI_NACL(NetAddressPrivateUntrusted_AreHostsEqual) 719 IN_PROC_BROWSER_TEST_F(PPAPITest, NetworkMonitor) {
687 TEST_PPAPI_NACL(NetAddressPrivateUntrusted_Describe) 720 RunTestViaHTTP(
688 TEST_PPAPI_NACL(NetAddressPrivateUntrusted_ReplacePort) 721 LIST_TEST(NetworkMonitorPrivate_Basic)
689 TEST_PPAPI_NACL(NetAddressPrivateUntrusted_GetAnyAddress) 722 LIST_TEST(NetworkMonitorPrivate_2Monitors)
690 TEST_PPAPI_NACL(NetAddressPrivateUntrusted_GetFamily) 723 LIST_TEST(NetworkMonitorPrivate_DeleteInCallback)
691 TEST_PPAPI_NACL(NetAddressPrivateUntrusted_GetPort) 724 LIST_TEST(NetworkMonitorPrivate_ListObserver)
692 TEST_PPAPI_NACL(NetAddressPrivateUntrusted_GetAddress) 725 );
726 }
727 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, NetworkMonitor) {
728 RunTestViaHTTP(
729 LIST_TEST(NetworkMonitorPrivate_Basic)
730 LIST_TEST(NetworkMonitorPrivate_2Monitors)
731 LIST_TEST(NetworkMonitorPrivate_DeleteInCallback)
732 LIST_TEST(NetworkMonitorPrivate_ListObserver)
733 );
734 }
735 IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, NetworkMonitor) {
736 RunTestViaHTTP(
737 LIST_TEST(NetworkMonitorPrivate_Basic)
738 LIST_TEST(NetworkMonitorPrivate_2Monitors)
739 LIST_TEST(NetworkMonitorPrivate_DeleteInCallback)
740 LIST_TEST(NetworkMonitorPrivate_ListObserver)
741 );
742 }
743 IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(NetworkMonitor)) {
744 RunTestViaHTTP(
745 LIST_TEST(NetworkMonitorPrivate_Basic)
746 LIST_TEST(NetworkMonitorPrivate_2Monitors)
747 LIST_TEST(NetworkMonitorPrivate_DeleteInCallback)
748 LIST_TEST(NetworkMonitorPrivate_ListObserver)
749 );
750 }
693 751
694 TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_Basic) 752 // Flash tests.
695 TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_2Monitors) 753 IN_PROC_BROWSER_TEST_F(PPAPITest, Flash) {
696 TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_DeleteInCallback) 754 RunTestViaHTTP(
697 TEST_PPAPI_IN_PROCESS(NetworkMonitorPrivate_ListObserver) 755 LIST_TEST(Flash_SetInstanceAlwaysOnTop)
698 TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_Basic) 756 LIST_TEST(Flash_GetCommandLineArgs)
699 TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_2Monitors) 757 );
700 TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_DeleteInCallback) 758 }
701 TEST_PPAPI_OUT_OF_PROCESS(NetworkMonitorPrivate_ListObserver) 759 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, Flash) {
702 TEST_PPAPI_NACL(NetworkMonitorPrivate_Basic) 760 RunTestViaHTTP(
703 TEST_PPAPI_NACL(NetworkMonitorPrivate_2Monitors) 761 LIST_TEST(Flash_SetInstanceAlwaysOnTop)
704 TEST_PPAPI_NACL(NetworkMonitorPrivate_DeleteInCallback) 762 LIST_TEST(Flash_GetCommandLineArgs)
705 TEST_PPAPI_NACL(NetworkMonitorPrivate_ListObserver) 763 );
706 764 }
707 TEST_PPAPI_IN_PROCESS(Flash_SetInstanceAlwaysOnTop)
708 TEST_PPAPI_IN_PROCESS(Flash_GetCommandLineArgs)
709 TEST_PPAPI_OUT_OF_PROCESS(Flash_SetInstanceAlwaysOnTop)
710 TEST_PPAPI_OUT_OF_PROCESS(Flash_GetCommandLineArgs)
711 765
712 // In-process WebSocket tests 766 // In-process WebSocket tests
713 IN_PROC_BROWSER_TEST_F(PPAPITest, WebSocket) { 767 IN_PROC_BROWSER_TEST_F(PPAPITest, WebSocket) {
714 RunTestWithWebSocketServer( 768 RunTestWithWebSocketServer(
715 LIST_TEST(WebSocket_IsWebSocket) 769 LIST_TEST(WebSocket_IsWebSocket)
716 LIST_TEST(WebSocket_UninitializedPropertiesAccess) 770 LIST_TEST(WebSocket_UninitializedPropertiesAccess)
717 LIST_TEST(WebSocket_InvalidConnect) 771 LIST_TEST(WebSocket_InvalidConnect)
718 LIST_TEST(WebSocket_Protocols) 772 LIST_TEST(WebSocket_Protocols)
719 LIST_TEST(WebSocket_GetURL) 773 LIST_TEST(WebSocket_GetURL)
720 LIST_TEST(WebSocket_ValidConnect) 774 LIST_TEST(WebSocket_ValidConnect)
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 #define MAYBE_FlashFullscreen DISABLED_FlashFullscreen 1066 #define MAYBE_FlashFullscreen DISABLED_FlashFullscreen
1013 #else 1067 #else
1014 #define MAYBE_FlashFullscreen FlashFullscreen 1068 #define MAYBE_FlashFullscreen FlashFullscreen
1015 #endif 1069 #endif
1016 TEST_PPAPI_OUT_OF_PROCESS(MAYBE_FlashFullscreen) 1070 TEST_PPAPI_OUT_OF_PROCESS(MAYBE_FlashFullscreen)
1017 1071
1018 TEST_PPAPI_IN_PROCESS(TalkPrivate) 1072 TEST_PPAPI_IN_PROCESS(TalkPrivate)
1019 TEST_PPAPI_OUT_OF_PROCESS(TalkPrivate) 1073 TEST_PPAPI_OUT_OF_PROCESS(TalkPrivate)
1020 1074
1021 #endif // ADDRESS_SANITIZER 1075 #endif // ADDRESS_SANITIZER
OLDNEW
« 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