OLD | NEW |
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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 TEST_PPAPI_NACL(MAYBE_Fullscreen) | 800 TEST_PPAPI_NACL(MAYBE_Fullscreen) |
801 | 801 |
802 TEST_PPAPI_IN_PROCESS(X509CertificatePrivate) | 802 TEST_PPAPI_IN_PROCESS(X509CertificatePrivate) |
803 TEST_PPAPI_OUT_OF_PROCESS(X509CertificatePrivate) | 803 TEST_PPAPI_OUT_OF_PROCESS(X509CertificatePrivate) |
804 | 804 |
805 // There is no proxy. This is used for PDF metrics reporting, and PDF only | 805 // There is no proxy. This is used for PDF metrics reporting, and PDF only |
806 // runs in process, so there's currently no need for a proxy. | 806 // runs in process, so there's currently no need for a proxy. |
807 TEST_PPAPI_IN_PROCESS(UMA) | 807 TEST_PPAPI_IN_PROCESS(UMA) |
808 | 808 |
809 // NetAddress tests | 809 // NetAddress tests |
810 IN_PROC_BROWSER_TEST_F(PPAPITest, NetAddress) { | 810 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, NetAddress) { |
| 811 RunTestViaHTTP( |
| 812 LIST_TEST(NetAddress_IPv4Address) |
| 813 LIST_TEST(NetAddress_IPv6Address) |
| 814 LIST_TEST(NetAddress_DescribeAsString) |
| 815 ); |
| 816 } |
| 817 IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, NetAddress) { |
| 818 RunTestViaHTTP( |
| 819 LIST_TEST(NetAddress_IPv4Address) |
| 820 LIST_TEST(NetAddress_IPv6Address) |
| 821 LIST_TEST(NetAddress_DescribeAsString) |
| 822 ); |
| 823 } |
| 824 IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(NetAddress)) { |
| 825 RunTestViaHTTP( |
| 826 LIST_TEST(NetAddress_IPv4Address) |
| 827 LIST_TEST(NetAddress_IPv6Address) |
| 828 LIST_TEST(NetAddress_DescribeAsString) |
| 829 ); |
| 830 } |
| 831 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, NetAddress) { |
| 832 RunTestViaHTTP( |
| 833 LIST_TEST(NetAddress_IPv4Address) |
| 834 LIST_TEST(NetAddress_IPv6Address) |
| 835 LIST_TEST(NetAddress_DescribeAsString) |
| 836 ); |
| 837 } |
| 838 |
| 839 IN_PROC_BROWSER_TEST_F(PPAPITest, NetAddressPrivate) { |
811 RunTestViaHTTP( | 840 RunTestViaHTTP( |
812 LIST_TEST(NetAddressPrivate_AreEqual) | 841 LIST_TEST(NetAddressPrivate_AreEqual) |
813 LIST_TEST(NetAddressPrivate_AreHostsEqual) | 842 LIST_TEST(NetAddressPrivate_AreHostsEqual) |
814 LIST_TEST(NetAddressPrivate_Describe) | 843 LIST_TEST(NetAddressPrivate_Describe) |
815 LIST_TEST(NetAddressPrivate_ReplacePort) | 844 LIST_TEST(NetAddressPrivate_ReplacePort) |
816 LIST_TEST(NetAddressPrivate_GetAnyAddress) | 845 LIST_TEST(NetAddressPrivate_GetAnyAddress) |
817 LIST_TEST(NetAddressPrivate_DescribeIPv6) | 846 LIST_TEST(NetAddressPrivate_DescribeIPv6) |
818 LIST_TEST(NetAddressPrivate_GetFamily) | 847 LIST_TEST(NetAddressPrivate_GetFamily) |
819 LIST_TEST(NetAddressPrivate_GetPort) | 848 LIST_TEST(NetAddressPrivate_GetPort) |
820 LIST_TEST(NetAddressPrivate_GetAddress) | 849 LIST_TEST(NetAddressPrivate_GetAddress) |
821 LIST_TEST(NetAddressPrivate_GetScopeID) | 850 LIST_TEST(NetAddressPrivate_GetScopeID) |
822 ); | 851 ); |
823 } | 852 } |
824 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, NetAddress) { | 853 IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, NetAddressPrivate) { |
825 RunTestViaHTTP( | 854 RunTestViaHTTP( |
826 LIST_TEST(NetAddressPrivate_AreEqual) | 855 LIST_TEST(NetAddressPrivate_AreEqual) |
827 LIST_TEST(NetAddressPrivate_AreHostsEqual) | 856 LIST_TEST(NetAddressPrivate_AreHostsEqual) |
828 LIST_TEST(NetAddressPrivate_Describe) | 857 LIST_TEST(NetAddressPrivate_Describe) |
829 LIST_TEST(NetAddressPrivate_ReplacePort) | 858 LIST_TEST(NetAddressPrivate_ReplacePort) |
830 LIST_TEST(NetAddressPrivate_GetAnyAddress) | 859 LIST_TEST(NetAddressPrivate_GetAnyAddress) |
831 LIST_TEST(NetAddressPrivate_DescribeIPv6) | 860 LIST_TEST(NetAddressPrivate_DescribeIPv6) |
832 LIST_TEST(NetAddressPrivate_GetFamily) | 861 LIST_TEST(NetAddressPrivate_GetFamily) |
833 LIST_TEST(NetAddressPrivate_GetPort) | 862 LIST_TEST(NetAddressPrivate_GetPort) |
834 LIST_TEST(NetAddressPrivate_GetAddress) | 863 LIST_TEST(NetAddressPrivate_GetAddress) |
835 LIST_TEST(NetAddressPrivate_GetScopeID) | 864 LIST_TEST(NetAddressPrivate_GetScopeID) |
836 ); | 865 ); |
837 } | 866 } |
838 IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, NetAddress) { | 867 IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, NetAddressPrivate) { |
839 RunTestViaHTTP( | 868 RunTestViaHTTP( |
840 LIST_TEST(NetAddressPrivateUntrusted_AreEqual) | 869 LIST_TEST(NetAddressPrivateUntrusted_AreEqual) |
841 LIST_TEST(NetAddressPrivateUntrusted_AreHostsEqual) | 870 LIST_TEST(NetAddressPrivateUntrusted_AreHostsEqual) |
842 LIST_TEST(NetAddressPrivateUntrusted_Describe) | 871 LIST_TEST(NetAddressPrivateUntrusted_Describe) |
843 LIST_TEST(NetAddressPrivateUntrusted_ReplacePort) | 872 LIST_TEST(NetAddressPrivateUntrusted_ReplacePort) |
844 LIST_TEST(NetAddressPrivateUntrusted_GetAnyAddress) | 873 LIST_TEST(NetAddressPrivateUntrusted_GetAnyAddress) |
845 LIST_TEST(NetAddressPrivateUntrusted_GetFamily) | 874 LIST_TEST(NetAddressPrivateUntrusted_GetFamily) |
846 LIST_TEST(NetAddressPrivateUntrusted_GetPort) | 875 LIST_TEST(NetAddressPrivateUntrusted_GetPort) |
847 LIST_TEST(NetAddressPrivateUntrusted_GetAddress) | 876 LIST_TEST(NetAddressPrivateUntrusted_GetAddress) |
848 ); | 877 ); |
849 } | 878 } |
850 IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(NetAddress)) { | 879 IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(NetAddressPrivate)) { |
851 RunTestViaHTTP( | 880 RunTestViaHTTP( |
852 LIST_TEST(NetAddressPrivateUntrusted_AreEqual) | 881 LIST_TEST(NetAddressPrivateUntrusted_AreEqual) |
853 LIST_TEST(NetAddressPrivateUntrusted_AreHostsEqual) | 882 LIST_TEST(NetAddressPrivateUntrusted_AreHostsEqual) |
854 LIST_TEST(NetAddressPrivateUntrusted_Describe) | 883 LIST_TEST(NetAddressPrivateUntrusted_Describe) |
855 LIST_TEST(NetAddressPrivateUntrusted_ReplacePort) | 884 LIST_TEST(NetAddressPrivateUntrusted_ReplacePort) |
856 LIST_TEST(NetAddressPrivateUntrusted_GetAnyAddress) | 885 LIST_TEST(NetAddressPrivateUntrusted_GetAnyAddress) |
857 LIST_TEST(NetAddressPrivateUntrusted_GetFamily) | 886 LIST_TEST(NetAddressPrivateUntrusted_GetFamily) |
858 LIST_TEST(NetAddressPrivateUntrusted_GetPort) | 887 LIST_TEST(NetAddressPrivateUntrusted_GetPort) |
859 LIST_TEST(NetAddressPrivateUntrusted_GetAddress) | 888 LIST_TEST(NetAddressPrivateUntrusted_GetAddress) |
860 ); | 889 ); |
861 } | 890 } |
862 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, NetAddress) { | 891 IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, NetAddressPrivate) { |
863 RunTestViaHTTP( | 892 RunTestViaHTTP( |
864 LIST_TEST(NetAddressPrivateUntrusted_AreEqual) | 893 LIST_TEST(NetAddressPrivateUntrusted_AreEqual) |
865 LIST_TEST(NetAddressPrivateUntrusted_AreHostsEqual) | 894 LIST_TEST(NetAddressPrivateUntrusted_AreHostsEqual) |
866 LIST_TEST(NetAddressPrivateUntrusted_Describe) | 895 LIST_TEST(NetAddressPrivateUntrusted_Describe) |
867 LIST_TEST(NetAddressPrivateUntrusted_ReplacePort) | 896 LIST_TEST(NetAddressPrivateUntrusted_ReplacePort) |
868 LIST_TEST(NetAddressPrivateUntrusted_GetAnyAddress) | 897 LIST_TEST(NetAddressPrivateUntrusted_GetAnyAddress) |
869 LIST_TEST(NetAddressPrivateUntrusted_GetFamily) | 898 LIST_TEST(NetAddressPrivateUntrusted_GetFamily) |
870 LIST_TEST(NetAddressPrivateUntrusted_GetPort) | 899 LIST_TEST(NetAddressPrivateUntrusted_GetPort) |
871 LIST_TEST(NetAddressPrivateUntrusted_GetAddress) | 900 LIST_TEST(NetAddressPrivateUntrusted_GetAddress) |
872 ); | 901 ); |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1326 TEST_PPAPI_OUT_OF_PROCESS(PDF) | 1355 TEST_PPAPI_OUT_OF_PROCESS(PDF) |
1327 // Only implemented on Windows and ChromeOS currently. | 1356 // Only implemented on Windows and ChromeOS currently. |
1328 #if (defined(OS_WIN) && defined(ENABLE_RLZ)) || defined(OS_CHROMEOS) | 1357 #if (defined(OS_WIN) && defined(ENABLE_RLZ)) || defined(OS_CHROMEOS) |
1329 TEST_PPAPI_OUT_OF_PROCESS(FlashDRM) | 1358 TEST_PPAPI_OUT_OF_PROCESS(FlashDRM) |
1330 #endif | 1359 #endif |
1331 | 1360 |
1332 TEST_PPAPI_IN_PROCESS(TalkPrivate) | 1361 TEST_PPAPI_IN_PROCESS(TalkPrivate) |
1333 TEST_PPAPI_OUT_OF_PROCESS(TalkPrivate) | 1362 TEST_PPAPI_OUT_OF_PROCESS(TalkPrivate) |
1334 | 1363 |
1335 #endif // ADDRESS_SANITIZER | 1364 #endif // ADDRESS_SANITIZER |
OLD | NEW |