This source file includes following definitions.
- TEST_PPAPI_IN_PROCESS
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- TEST_PPAPI_IN_PROCESS
- TEST_PPAPI_OUT_OF_PROCESS
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- TEST_PPAPI_IN_PROCESS
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- TEST_PPAPI_OUT_OF_PROCESS_WITH_SSL_SERVER
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- TEST_PPAPI_IN_PROCESS_VIA_HTTP
- TEST_PPAPI_NACL
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- TEST_PPAPI_IN_PROCESS
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- TEST_PPAPI_IN_PROCESS_VIA_HTTP
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
- TEST_PPAPI_OUT_OF_PROCESS
#include "chrome/test/ppapi/ppapi_test.h"
#include "base/test/test_timeouts.h"
#include "build/build_config.h"
#include "chrome/browser/content_settings/host_content_settings_map.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_navigator.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/test/base/javascript_test_observer.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/url_constants.h"
#include "content/public/test/test_renderer_host.h"
using content::RenderViewHost;
#define STRIP_PREFIXES(test_name) StripPrefixes(#test_name)
#define STRINGIFY(test_name) #test_name
#define LIST_TEST(test_name) STRINGIFY(test_name) ","
#define TEST_PPAPI_IN_PROCESS(test_name) \
IN_PROC_BROWSER_TEST_F(PPAPITest, test_name) { \
RunTest(STRIP_PREFIXES(test_name)); \
}
#define TEST_PPAPI_OUT_OF_PROCESS(test_name) \
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, test_name) { \
RunTest(STRIP_PREFIXES(test_name)); \
}
#define TEST_PPAPI_IN_PROCESS_VIA_HTTP(test_name) \
IN_PROC_BROWSER_TEST_F(PPAPITest, test_name) { \
RunTestViaHTTP(STRIP_PREFIXES(test_name)); \
}
#define TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(test_name) \
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, test_name) { \
RunTestViaHTTP(STRIP_PREFIXES(test_name)); \
}
#define TEST_PPAPI_IN_PROCESS_WITH_SSL_SERVER(test_name) \
IN_PROC_BROWSER_TEST_F(PPAPITest, test_name) { \
RunTestWithSSLServer(STRIP_PREFIXES(test_name)); \
}
#define TEST_PPAPI_OUT_OF_PROCESS_WITH_SSL_SERVER(test_name) \
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, test_name) { \
RunTestWithSSLServer(STRIP_PREFIXES(test_name)); \
}
#if defined(DISABLE_NACL)
#define TEST_PPAPI_NACL(test_name)
#define TEST_PPAPI_NACL_DISALLOWED_SOCKETS(test_name)
#define TEST_PPAPI_NACL_WITH_SSL_SERVER(test_name)
#elif defined(ARCH_CPU_ARM_FAMILY)
#define TEST_PPAPI_NACL(test_name) \
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, test_name) { \
RunTestViaHTTP(STRIP_PREFIXES(test_name)); \
} \
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, test_name) { \
RunTestViaHTTP(STRIP_PREFIXES(test_name)); \
}
#define TEST_PPAPI_NACL_DISALLOWED_SOCKETS(test_name) \
IN_PROC_BROWSER_TEST_F(PPAPINaClTestDisallowedSockets, test_name) { \
RunTestViaHTTP(STRIP_PREFIXES(test_name)); \
}
#define TEST_PPAPI_NACL_WITH_SSL_SERVER(test_name) \
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, test_name) { \
RunTestWithSSLServer(STRIP_PREFIXES(test_name)); \
} \
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, test_name) { \
RunTestWithSSLServer(STRIP_PREFIXES(test_name)); \
}
#else
#define TEST_PPAPI_NACL(test_name) \
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, test_name) { \
RunTestViaHTTP(STRIP_PREFIXES(test_name)); \
} \
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, test_name) { \
RunTestViaHTTP(STRIP_PREFIXES(test_name)); \
} \
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, test_name) { \
RunTestViaHTTP(STRIP_PREFIXES(test_name)); \
}
#define TEST_PPAPI_NACL_DISALLOWED_SOCKETS(test_name) \
IN_PROC_BROWSER_TEST_F(PPAPINaClTestDisallowedSockets, test_name) { \
RunTestViaHTTP(STRIP_PREFIXES(test_name)); \
}
#define TEST_PPAPI_NACL_WITH_SSL_SERVER(test_name) \
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, test_name) { \
RunTestWithSSLServer(STRIP_PREFIXES(test_name)); \
} \
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, test_name) { \
RunTestWithSSLServer(STRIP_PREFIXES(test_name)); \
} \
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, test_name) { \
RunTestWithSSLServer(STRIP_PREFIXES(test_name)); \
}
#endif
#if defined(ARCH_CPU_ARM_FAMILY)
#define MAYBE_GLIBC(test_name) DISABLED_##test_name
#else
#define MAYBE_GLIBC(test_name) test_name
#endif
TEST_PPAPI_IN_PROCESS(Broker)
TEST_PPAPI_OUT_OF_PROCESS(DISABLED_Broker)
IN_PROC_BROWSER_TEST_F(PPAPIBrokerInfoBarTest, Accept) {
InfoBarObserver observer(this);
observer.ExpectInfoBarAndAccept(true);
RunTest("Broker_IsAllowedPermissionDenied");
RunTest("Broker_ConnectPermissionGranted");
RunTest("Broker_IsAllowedPermissionGranted");
GURL url = GetTestFileUrl("Broker_ConnectPermissionGranted");
HostContentSettingsMap* content_settings =
browser()->profile()->GetHostContentSettingsMap();
EXPECT_EQ(CONTENT_SETTING_ALLOW,
content_settings->GetContentSetting(
url, url, CONTENT_SETTINGS_TYPE_PPAPI_BROKER, std::string()));
}
IN_PROC_BROWSER_TEST_F(PPAPIBrokerInfoBarTest, Deny) {
InfoBarObserver observer(this);
observer.ExpectInfoBarAndAccept(false);
RunTest("Broker_IsAllowedPermissionDenied");
RunTest("Broker_ConnectPermissionDenied");
RunTest("Broker_IsAllowedPermissionDenied");
GURL url = GetTestFileUrl("Broker_ConnectPermissionDenied");
HostContentSettingsMap* content_settings =
browser()->profile()->GetHostContentSettingsMap();
EXPECT_EQ(CONTENT_SETTING_BLOCK,
content_settings->GetContentSetting(
url, url, CONTENT_SETTINGS_TYPE_PPAPI_BROKER, std::string()));
}
IN_PROC_BROWSER_TEST_F(PPAPIBrokerInfoBarTest, Blocked) {
browser()->profile()->GetHostContentSettingsMap()->SetDefaultContentSetting(
CONTENT_SETTINGS_TYPE_PPAPI_BROKER, CONTENT_SETTING_BLOCK);
InfoBarObserver observer(this);
RunTest("Broker_ConnectPermissionDenied");
RunTest("Broker_IsAllowedPermissionDenied");
}
IN_PROC_BROWSER_TEST_F(PPAPIBrokerInfoBarTest, Allowed) {
browser()->profile()->GetHostContentSettingsMap()->SetDefaultContentSetting(
CONTENT_SETTINGS_TYPE_PPAPI_BROKER, CONTENT_SETTING_ALLOW);
InfoBarObserver observer(this);
RunTest("Broker_ConnectPermissionGranted");
RunTest("Broker_IsAllowedPermissionGranted");
}
TEST_PPAPI_IN_PROCESS(Console)
TEST_PPAPI_OUT_OF_PROCESS(Console)
TEST_PPAPI_NACL(Console)
#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_AURA)
#define MAYBE_Core DISABLED_Core
#else
#define MAYBE_Core Core
#endif
TEST_PPAPI_IN_PROCESS(MAYBE_Core)
TEST_PPAPI_OUT_OF_PROCESS(MAYBE_Core)
TEST_PPAPI_NACL(MAYBE_Core)
#if defined(OS_LINUX) && defined(ARCH_CPU_X86)
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClNonSfiTest, Core) {
RunTestViaHTTP(STRIP_PREFIXES(Core));
}
#endif
TEST_PPAPI_IN_PROCESS(TraceEvent)
TEST_PPAPI_OUT_OF_PROCESS(TraceEvent)
TEST_PPAPI_NACL(TraceEvent)
TEST_PPAPI_IN_PROCESS(InputEvent)
TEST_PPAPI_OUT_OF_PROCESS(InputEvent)
TEST_PPAPI_NACL(InputEvent)
#if defined(OS_LINUX) || defined(OS_WIN)
#define MAYBE_ImeInputEvent DISABLED_ImeInputEvent
#else
#define MAYBE_ImeInputEvent ImeInputEvent
#endif
TEST_PPAPI_IN_PROCESS(MAYBE_ImeInputEvent)
TEST_PPAPI_OUT_OF_PROCESS(MAYBE_ImeInputEvent)
TEST_PPAPI_NACL(MAYBE_ImeInputEvent)
TEST_PPAPI_IN_PROCESS(Instance_ExecuteScript);
TEST_PPAPI_OUT_OF_PROCESS(Instance_ExecuteScript)
IN_PROC_BROWSER_TEST_F(PPAPITest, Instance_RecursiveObjects) {
RunTestAndReload("Instance_RecursiveObjects");
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest,
DISABLED_Instance_RecursiveObjects) {
RunTestAndReload("Instance_RecursiveObjects");
}
TEST_PPAPI_IN_PROCESS(Instance_LeakedObjectDestructors);
TEST_PPAPI_OUT_OF_PROCESS(Instance_LeakedObjectDestructors);
IN_PROC_BROWSER_TEST_F(PPAPITest,
Instance_ExecuteScriptAtInstanceShutdown) {
RunTest("Instance_SetupExecuteScriptAtInstanceShutdown");
RunTest("Instance_ExecuteScriptAtInstanceShutdown");
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest,
Instance_ExecuteScriptAtInstanceShutdown) {
RunTest("Instance_SetupExecuteScriptAtInstanceShutdown");
RunTest("Instance_ExecuteScriptAtInstanceShutdown");
}
TEST_PPAPI_IN_PROCESS(Graphics2D)
TEST_PPAPI_OUT_OF_PROCESS(Graphics2D)
TEST_PPAPI_NACL(Graphics2D_InvalidResource)
TEST_PPAPI_NACL(Graphics2D_InvalidSize)
TEST_PPAPI_NACL(Graphics2D_Humongous)
TEST_PPAPI_NACL(Graphics2D_InitToZero)
TEST_PPAPI_NACL(Graphics2D_Describe)
TEST_PPAPI_NACL(Graphics2D_Paint)
TEST_PPAPI_NACL(Graphics2D_Scroll)
TEST_PPAPI_NACL(Graphics2D_Replace)
TEST_PPAPI_NACL(Graphics2D_Flush)
TEST_PPAPI_NACL(Graphics2D_FlushOffscreenUpdate)
TEST_PPAPI_NACL(Graphics2D_BindNull)
#if defined(OS_WIN)
#if defined(USE_AURA)
#define MAYBE_IN_Graphics3D DISABLED_Graphics3D
#define MAYBE_OUT_Graphics3D DISABLED_Graphics3D
#define MAYBE_NACL_Graphics3D DISABLED_Graphics3D
#else
#define MAYBE_IN_Graphics3D DISABLED_Graphics3D
#define MAYBE_OUT_Graphics3D Graphics3D
#define MAYBE_NACL_Graphics3D DISABLED_Graphics3D
#endif
#elif defined(OS_MACOSX)
#define MAYBE_IN_Graphics3D DISABLED_Graphics3D
#define MAYBE_OUT_Graphics3D DISABLED_Graphics3D
#define MAYBE_NACL_Graphics3D DISABLED_Graphics3D
#else
#define MAYBE_IN_Graphics3D DISABLED_Graphics3D
#define MAYBE_OUT_Graphics3D Graphics3D
#define MAYBE_NACL_Graphics3D Graphics3D
#endif
TEST_PPAPI_IN_PROCESS(MAYBE_IN_Graphics3D)
TEST_PPAPI_OUT_OF_PROCESS(MAYBE_OUT_Graphics3D)
TEST_PPAPI_NACL(MAYBE_NACL_Graphics3D)
TEST_PPAPI_IN_PROCESS(ImageData)
TEST_PPAPI_OUT_OF_PROCESS(ImageData)
TEST_PPAPI_NACL(ImageData)
TEST_PPAPI_IN_PROCESS(BrowserFont)
#if defined(OS_WIN)
#define MAYBE_OUT_BrowserFont DISABLED_BrowserFont
#else
#define MAYBE_OUT_BrowserFont BrowserFont
#endif
TEST_PPAPI_OUT_OF_PROCESS(MAYBE_OUT_BrowserFont)
TEST_PPAPI_IN_PROCESS(Buffer)
TEST_PPAPI_OUT_OF_PROCESS(Buffer)
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, TCPSocket) {
RunTestViaHTTP(
LIST_TEST(TCPSocket_Connect)
LIST_TEST(TCPSocket_ReadWrite)
LIST_TEST(TCPSocket_SetOption)
LIST_TEST(TCPSocket_Listen)
LIST_TEST(TCPSocket_Backlog)
LIST_TEST(TCPSocket_Interface_1_0)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, TCPSocket) {
RunTestViaHTTP(
LIST_TEST(TCPSocket_Connect)
LIST_TEST(TCPSocket_ReadWrite)
LIST_TEST(TCPSocket_SetOption)
LIST_TEST(TCPSocket_Listen)
LIST_TEST(TCPSocket_Backlog)
LIST_TEST(TCPSocket_Interface_1_0)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(TCPSocket)) {
RunTestViaHTTP(
LIST_TEST(TCPSocket_Connect)
LIST_TEST(TCPSocket_ReadWrite)
LIST_TEST(TCPSocket_SetOption)
LIST_TEST(TCPSocket_Listen)
LIST_TEST(TCPSocket_Backlog)
LIST_TEST(TCPSocket_Interface_1_0)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, TCPSocket) {
RunTestViaHTTP(
LIST_TEST(TCPSocket_Connect)
LIST_TEST(TCPSocket_ReadWrite)
LIST_TEST(TCPSocket_SetOption)
LIST_TEST(TCPSocket_Listen)
LIST_TEST(TCPSocket_Backlog)
LIST_TEST(TCPSocket_Interface_1_0)
);
}
TEST_PPAPI_OUT_OF_PROCESS_WITH_SSL_SERVER(TCPSocketPrivate)
TEST_PPAPI_NACL_WITH_SSL_SERVER(TCPSocketPrivate)
TEST_PPAPI_OUT_OF_PROCESS_WITH_SSL_SERVER(TCPSocketPrivateTrusted)
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, UDPSocket) {
RunTestViaHTTP(
LIST_TEST(UDPSocket_ReadWrite)
LIST_TEST(UDPSocket_SetOption)
#if !defined(OS_MACOSX)
LIST_TEST(UDPSocket_Broadcast)
#endif
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, UDPSocket) {
RunTestViaHTTP(
LIST_TEST(UDPSocket_ReadWrite)
LIST_TEST(UDPSocket_SetOption)
#if !defined(OS_MACOSX)
LIST_TEST(UDPSocket_Broadcast)
#endif
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(UDPSocket)) {
RunTestViaHTTP(
LIST_TEST(UDPSocket_ReadWrite)
LIST_TEST(UDPSocket_SetOption)
#if !defined(OS_MACOSX)
LIST_TEST(UDPSocket_Broadcast)
#endif
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, UDPSocket) {
RunTestViaHTTP(
LIST_TEST(UDPSocket_ReadWrite)
LIST_TEST(UDPSocket_SetOption)
#if !defined(OS_MACOSX)
LIST_TEST(UDPSocket_Broadcast)
#endif
);
}
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_Connect)
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_ConnectFailure)
#if !defined(OS_MACOSX)
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_Broadcast)
#endif
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(UDPSocketPrivate_SetSocketFeatureErrors)
TEST_PPAPI_NACL(UDPSocketPrivate_Connect)
TEST_PPAPI_NACL(UDPSocketPrivate_ConnectFailure)
#if !defined(OS_MACOSX)
TEST_PPAPI_NACL(UDPSocketPrivate_Broadcast)
#endif
TEST_PPAPI_NACL(UDPSocketPrivate_SetSocketFeatureErrors)
TEST_PPAPI_NACL_DISALLOWED_SOCKETS(HostResolverPrivateDisallowed)
TEST_PPAPI_NACL_DISALLOWED_SOCKETS(TCPServerSocketPrivateDisallowed)
TEST_PPAPI_NACL_DISALLOWED_SOCKETS(TCPSocketPrivateDisallowed)
TEST_PPAPI_NACL_DISALLOWED_SOCKETS(UDPSocketPrivateDisallowed)
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(TCPServerSocketPrivate)
TEST_PPAPI_NACL(TCPServerSocketPrivate)
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, HostResolver) {
RunTestViaHTTP(
LIST_TEST(HostResolver_Empty)
LIST_TEST(HostResolver_Resolve)
LIST_TEST(HostResolver_ResolveIPv4)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, HostResolver) {
RunTestViaHTTP(
LIST_TEST(HostResolver_Empty)
LIST_TEST(HostResolver_Resolve)
LIST_TEST(HostResolver_ResolveIPv4)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(HostResolver)) {
RunTestViaHTTP(
LIST_TEST(HostResolver_Empty)
LIST_TEST(HostResolver_Resolve)
LIST_TEST(HostResolver_ResolveIPv4)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, HostResolver) {
RunTestViaHTTP(
LIST_TEST(HostResolver_Empty)
LIST_TEST(HostResolver_Resolve)
LIST_TEST(HostResolver_ResolveIPv4)
);
}
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(HostResolverPrivate_Resolve)
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(HostResolverPrivate_ResolveIPv4)
TEST_PPAPI_NACL(HostResolverPrivate_Resolve)
TEST_PPAPI_NACL(HostResolverPrivate_ResolveIPv4)
IN_PROC_BROWSER_TEST_F(PPAPITest, URLLoader0) {
RunTestViaHTTP(
LIST_TEST(URLLoader_BasicGET)
LIST_TEST(URLLoader_BasicPOST)
LIST_TEST(URLLoader_BasicFilePOST)
LIST_TEST(URLLoader_BasicFileRangePOST)
LIST_TEST(URLLoader_CompoundBodyPOST)
);
}
IN_PROC_BROWSER_TEST_F(PPAPITest, URLLoader1) {
RunTestViaHTTP(
LIST_TEST(URLLoader_EmptyDataPOST)
LIST_TEST(URLLoader_BinaryDataPOST)
LIST_TEST(URLLoader_CustomRequestHeader)
LIST_TEST(URLLoader_FailsBogusContentLength)
LIST_TEST(URLLoader_StreamToFile)
);
}
IN_PROC_BROWSER_TEST_F(PPAPITest, URLLoader2) {
RunTestViaHTTP(
LIST_TEST(URLLoader_UntrustedSameOriginRestriction)
LIST_TEST(URLLoader_TrustedSameOriginRestriction)
LIST_TEST(URLLoader_UntrustedCrossOriginRequest)
LIST_TEST(URLLoader_TrustedCrossOriginRequest)
LIST_TEST(URLLoader_UntrustedJavascriptURLRestriction)
LIST_TEST(DISABLED_URLLoader_TrustedJavascriptURLRestriction)
);
}
IN_PROC_BROWSER_TEST_F(PPAPITest, URLLoader3) {
RunTestViaHTTP(
LIST_TEST(URLLoader_UntrustedHttpRequests)
LIST_TEST(URLLoader_TrustedHttpRequests)
LIST_TEST(URLLoader_FollowURLRedirect)
LIST_TEST(URLLoader_AuditURLRedirect)
LIST_TEST(URLLoader_AbortCalls)
LIST_TEST(URLLoader_UntendedLoad)
LIST_TEST(URLLoader_PrefetchBufferThreshold)
);
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, URLLoader0) {
RunTestViaHTTP(
LIST_TEST(URLLoader_BasicGET)
LIST_TEST(URLLoader_BasicPOST)
LIST_TEST(URLLoader_BasicFilePOST)
LIST_TEST(URLLoader_BasicFileRangePOST)
LIST_TEST(URLLoader_CompoundBodyPOST)
);
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, URLLoader1) {
RunTestViaHTTP(
LIST_TEST(URLLoader_EmptyDataPOST)
LIST_TEST(URLLoader_BinaryDataPOST)
LIST_TEST(URLLoader_CustomRequestHeader)
LIST_TEST(URLLoader_FailsBogusContentLength)
LIST_TEST(URLLoader_StreamToFile)
);
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, URLLoader2) {
RunTestViaHTTP(
LIST_TEST(URLLoader_UntrustedSameOriginRestriction)
LIST_TEST(URLLoader_TrustedSameOriginRestriction)
LIST_TEST(URLLoader_UntrustedCrossOriginRequest)
LIST_TEST(URLLoader_TrustedCrossOriginRequest)
LIST_TEST(URLLoader_UntrustedJavascriptURLRestriction)
LIST_TEST(DISABLED_URLLoader_TrustedJavascriptURLRestriction)
);
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, URLLoader3) {
RunTestViaHTTP(
LIST_TEST(URLLoader_UntrustedHttpRequests)
LIST_TEST(URLLoader_TrustedHttpRequests)
LIST_TEST(URLLoader_FollowURLRedirect)
LIST_TEST(URLLoader_AuditURLRedirect)
LIST_TEST(URLLoader_AbortCalls)
LIST_TEST(URLLoader_UntendedLoad)
LIST_TEST(URLLoader_PrefetchBufferThreshold)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, URLLoader0) {
RunTestViaHTTP(
LIST_TEST(URLLoader_BasicGET)
LIST_TEST(URLLoader_BasicPOST)
LIST_TEST(URLLoader_BasicFilePOST)
LIST_TEST(URLLoader_BasicFileRangePOST)
LIST_TEST(URLLoader_CompoundBodyPOST)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, URLLoader1) {
RunTestViaHTTP(
LIST_TEST(URLLoader_EmptyDataPOST)
LIST_TEST(URLLoader_BinaryDataPOST)
LIST_TEST(URLLoader_CustomRequestHeader)
LIST_TEST(URLLoader_FailsBogusContentLength)
LIST_TEST(URLLoader_StreamToFile)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, URLLoader2) {
RunTestViaHTTP(
LIST_TEST(URLLoader_UntrustedSameOriginRestriction)
LIST_TEST(DISABLED_URLLoader_TrustedSameOriginRestriction)
LIST_TEST(URLLoader_UntrustedCrossOriginRequest)
LIST_TEST(DISABLED_URLLoader_TrustedCrossOriginRequest)
LIST_TEST(URLLoader_UntrustedJavascriptURLRestriction)
LIST_TEST(DISABLED_URLLoader_TrustedJavascriptURLRestriction)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, URLLoader3) {
RunTestViaHTTP(
LIST_TEST(URLLoader_UntrustedHttpRequests)
LIST_TEST(DISABLED_URLLoader_TrustedHttpRequests)
LIST_TEST(URLLoader_FollowURLRedirect)
LIST_TEST(URLLoader_AuditURLRedirect)
LIST_TEST(URLLoader_AbortCalls)
LIST_TEST(URLLoader_UntendedLoad)
LIST_TEST(URLLoader_PrefetchBufferThreshold)
);
}
#if defined(OS_LINUX) && defined(ARCH_CPU_X86)
#define MAYBE_URLLoader_BasicFilePOST DISABLED_URLLoader_BasicFilePOST
#else
#define MAYBE_URLLoader_BasicFilePOST URLLoader_BasicFilePOST
#endif
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, URLLoader0) {
RunTestViaHTTP(
LIST_TEST(URLLoader_BasicGET)
LIST_TEST(URLLoader_BasicPOST)
LIST_TEST(MAYBE_URLLoader_BasicFilePOST)
LIST_TEST(URLLoader_BasicFileRangePOST)
LIST_TEST(URLLoader_CompoundBodyPOST)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, URLLoader1) {
RunTestViaHTTP(
LIST_TEST(URLLoader_EmptyDataPOST)
LIST_TEST(URLLoader_BinaryDataPOST)
LIST_TEST(URLLoader_CustomRequestHeader)
LIST_TEST(URLLoader_FailsBogusContentLength)
LIST_TEST(URLLoader_StreamToFile)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, URLLoader2) {
RunTestViaHTTP(
LIST_TEST(URLLoader_UntrustedSameOriginRestriction)
LIST_TEST(DISABLED_URLLoader_TrustedSameOriginRestriction)
LIST_TEST(URLLoader_UntrustedCrossOriginRequest)
LIST_TEST(DISABLED_URLLoader_TrustedCrossOriginRequest)
LIST_TEST(URLLoader_UntrustedJavascriptURLRestriction)
LIST_TEST(DISABLED_URLLoader_TrustedJavascriptURLRestriction)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, URLLoader3) {
RunTestViaHTTP(
LIST_TEST(URLLoader_UntrustedHttpRequests)
LIST_TEST(DISABLED_URLLoader_TrustedHttpRequests)
LIST_TEST(URLLoader_FollowURLRedirect)
LIST_TEST(URLLoader_AuditURLRedirect)
LIST_TEST(URLLoader_AbortCalls)
LIST_TEST(URLLoader_UntendedLoad)
LIST_TEST(URLLoader_PrefetchBufferThreshold)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, URLLoader0) {
RunTestViaHTTP(
LIST_TEST(URLLoader_BasicGET)
LIST_TEST(URLLoader_BasicPOST)
LIST_TEST(URLLoader_BasicFilePOST)
LIST_TEST(URLLoader_BasicFileRangePOST)
LIST_TEST(URLLoader_CompoundBodyPOST)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, URLLoader1) {
RunTestViaHTTP(
LIST_TEST(URLLoader_EmptyDataPOST)
LIST_TEST(URLLoader_BinaryDataPOST)
LIST_TEST(URLLoader_CustomRequestHeader)
LIST_TEST(URLLoader_FailsBogusContentLength)
LIST_TEST(URLLoader_StreamToFile)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, URLLoader2) {
RunTestViaHTTP(
LIST_TEST(URLLoader_UntrustedSameOriginRestriction)
LIST_TEST(DISABLED_URLLoader_TrustedSameOriginRestriction)
LIST_TEST(URLLoader_UntrustedCrossOriginRequest)
LIST_TEST(DISABLED_URLLoader_TrustedCrossOriginRequest)
LIST_TEST(URLLoader_UntrustedJavascriptURLRestriction)
LIST_TEST(DISABLED_URLLoader_TrustedJavascriptURLRestriction)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, URLLoader3) {
RunTestViaHTTP(
LIST_TEST(URLLoader_UntrustedHttpRequests)
LIST_TEST(DISABLED_URLLoader_TrustedHttpRequests)
LIST_TEST(URLLoader_FollowURLRedirect)
LIST_TEST(URLLoader_AuditURLRedirect)
LIST_TEST(URLLoader_AbortCalls)
LIST_TEST(URLLoader_UntendedLoad)
LIST_TEST(URLLoader_PrefetchBufferThreshold)
);
}
TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLRequest_CreateAndIsURLRequestInfo)
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLRequest_CreateAndIsURLRequestInfo)
#if defined(OS_WIN)
#define MAYBE_URLRequest_CreateAndIsURLRequestInfo \
DISABLED_URLRequest_CreateAndIsURLRequestInfo
#else
#define MAYBE_URLRequest_CreateAndIsURLRequestInfo \
URLRequest_CreateAndIsURLRequestInfo
#endif
TEST_PPAPI_NACL(MAYBE_URLRequest_CreateAndIsURLRequestInfo)
TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLRequest_SetProperty)
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLRequest_SetProperty)
TEST_PPAPI_NACL(DISABLED_URLRequest_SetProperty)
TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLRequest_AppendDataToBody)
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLRequest_AppendDataToBody)
TEST_PPAPI_NACL(URLRequest_AppendDataToBody)
TEST_PPAPI_IN_PROCESS_VIA_HTTP(DISABLED_URLRequest_AppendFileToBody)
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(DISABLED_URLRequest_AppendFileToBody)
TEST_PPAPI_NACL(DISABLED_URLRequest_AppendFileToBody)
TEST_PPAPI_IN_PROCESS_VIA_HTTP(URLRequest_Stress)
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(URLRequest_Stress)
TEST_PPAPI_NACL(URLRequest_Stress)
TEST_PPAPI_IN_PROCESS(PaintAggregator)
TEST_PPAPI_OUT_OF_PROCESS(PaintAggregator)
TEST_PPAPI_NACL(PaintAggregator)
TEST_PPAPI_IN_PROCESS(DISABLED_Scrollbar)
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, DISABLED_Scrollbar) {
RunTest("Scrollbar");
}
TEST_PPAPI_NACL(DISABLED_Scrollbar)
TEST_PPAPI_IN_PROCESS(URLUtil)
TEST_PPAPI_OUT_OF_PROCESS(URLUtil)
TEST_PPAPI_IN_PROCESS(CharSet)
TEST_PPAPI_OUT_OF_PROCESS(CharSet)
TEST_PPAPI_IN_PROCESS(Crypto)
TEST_PPAPI_OUT_OF_PROCESS(Crypto)
TEST_PPAPI_IN_PROCESS(Var)
TEST_PPAPI_OUT_OF_PROCESS(Var)
TEST_PPAPI_NACL(Var)
TEST_PPAPI_IN_PROCESS(VarResource)
TEST_PPAPI_OUT_OF_PROCESS(VarResource)
TEST_PPAPI_NACL(VarResource)
#if defined(OS_MACOSX)
#define MAYBE_VarDeprecated DISABLED_VarDeprecated
#else
#define MAYBE_VarDeprecated VarDeprecated
#endif
TEST_PPAPI_IN_PROCESS(VarDeprecated)
TEST_PPAPI_OUT_OF_PROCESS(MAYBE_VarDeprecated)
#ifdef PostMessage
#undef PostMessage
#endif
IN_PROC_BROWSER_TEST_F(PPAPITest, PostMessage) {
RunTestViaHTTP(
LIST_TEST(PostMessage_SendInInit)
LIST_TEST(PostMessage_SendingData)
LIST_TEST(PostMessage_SendingString)
LIST_TEST(PostMessage_SendingArrayBuffer)
LIST_TEST(DISABLED_PostMessage_SendingArray)
LIST_TEST(DISABLED_PostMessage_SendingDictionary)
LIST_TEST(DISABLED_PostMessage_SendingResource)
LIST_TEST(DISABLED_PostMessage_SendingComplexVar)
LIST_TEST(PostMessage_MessageEvent)
LIST_TEST(PostMessage_NoHandler)
LIST_TEST(PostMessage_ExtraParam)
);
}
#if defined(OS_WIN)
#define MAYBE_PostMessage DISABLED_PostMessage
#else
#define MAYBE_PostMessage PostMessage
#endif
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, MAYBE_PostMessage) {
RunTestViaHTTP(
LIST_TEST(PostMessage_SendInInit)
LIST_TEST(PostMessage_SendingData)
LIST_TEST(PostMessage_SendingString)
LIST_TEST(PostMessage_SendingArrayBuffer)
LIST_TEST(PostMessage_SendingArray)
LIST_TEST(PostMessage_SendingDictionary)
LIST_TEST(PostMessage_SendingResource)
LIST_TEST(PostMessage_SendingComplexVar)
LIST_TEST(PostMessage_MessageEvent)
LIST_TEST(PostMessage_NoHandler)
LIST_TEST(PostMessage_ExtraParam)
LIST_TEST(PostMessage_NonMainThread)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, PostMessage) {
RunTestViaHTTP(
LIST_TEST(PostMessage_SendInInit)
LIST_TEST(PostMessage_SendingData)
LIST_TEST(PostMessage_SendingString)
LIST_TEST(PostMessage_SendingArrayBuffer)
LIST_TEST(PostMessage_SendingArray)
LIST_TEST(PostMessage_SendingDictionary)
LIST_TEST(PostMessage_SendingResource)
LIST_TEST(PostMessage_SendingComplexVar)
LIST_TEST(PostMessage_MessageEvent)
LIST_TEST(PostMessage_NoHandler)
LIST_TEST(PostMessage_ExtraParam)
LIST_TEST(PostMessage_NonMainThread)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(PostMessage)) {
RunTestViaHTTP(
LIST_TEST(PostMessage_SendInInit)
LIST_TEST(PostMessage_SendingData)
LIST_TEST(PostMessage_SendingString)
LIST_TEST(PostMessage_SendingArrayBuffer)
LIST_TEST(PostMessage_SendingArray)
LIST_TEST(PostMessage_SendingDictionary)
LIST_TEST(PostMessage_SendingResource)
LIST_TEST(PostMessage_SendingComplexVar)
LIST_TEST(PostMessage_MessageEvent)
LIST_TEST(PostMessage_NoHandler)
LIST_TEST(PostMessage_ExtraParam)
LIST_TEST(PostMessage_NonMainThread)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, PostMessage) {
RunTestViaHTTP(
LIST_TEST(PostMessage_SendInInit)
LIST_TEST(PostMessage_SendingData)
LIST_TEST(PostMessage_SendingString)
LIST_TEST(PostMessage_SendingArrayBuffer)
LIST_TEST(PostMessage_SendingArray)
LIST_TEST(PostMessage_SendingDictionary)
LIST_TEST(PostMessage_SendingResource)
LIST_TEST(PostMessage_SendingComplexVar)
LIST_TEST(PostMessage_MessageEvent)
LIST_TEST(PostMessage_NoHandler)
LIST_TEST(PostMessage_ExtraParam)
LIST_TEST(PostMessage_NonMainThread)
);
}
TEST_PPAPI_IN_PROCESS(Memory)
TEST_PPAPI_OUT_OF_PROCESS(Memory)
TEST_PPAPI_NACL(Memory)
TEST_PPAPI_IN_PROCESS(VideoDecoder)
TEST_PPAPI_OUT_OF_PROCESS(VideoDecoder)
#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_AURA)
#define MAYBE_FileIO DISABLED_FileIO
#define MAYBE_FileIO_Private DISABLED_FileIO_Private
#else
#define MAYBE_FileIO FileIO
#define MAYBE_FileIO_Private FileIO_Private
#endif
IN_PROC_BROWSER_TEST_F(PPAPITest, MAYBE_FileIO) {
RunTestViaHTTP(
LIST_TEST(FileIO_Open)
LIST_TEST(FileIO_OpenDirectory)
LIST_TEST(FileIO_AbortCalls)
LIST_TEST(FileIO_ParallelReads)
LIST_TEST(FileIO_ParallelWrites)
LIST_TEST(FileIO_NotAllowMixedReadWrite)
LIST_TEST(FileIO_ReadWriteSetLength)
LIST_TEST(FileIO_ReadToArrayWriteSetLength)
LIST_TEST(FileIO_TouchQuery)
);
}
IN_PROC_BROWSER_TEST_F(PPAPIPrivateTest, MAYBE_FileIO_Private) {
RunTestViaHTTP(
LIST_TEST(FileIO_RequestOSFileHandle)
LIST_TEST(FileIO_RequestOSFileHandleWithOpenExclusive)
LIST_TEST(FileIO_Mmap)
);
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, MAYBE_FileIO) {
RunTestViaHTTP(
LIST_TEST(FileIO_Open)
LIST_TEST(FileIO_AbortCalls)
LIST_TEST(FileIO_ParallelReads)
LIST_TEST(FileIO_ParallelWrites)
LIST_TEST(FileIO_NotAllowMixedReadWrite)
LIST_TEST(FileIO_ReadWriteSetLength)
LIST_TEST(FileIO_ReadToArrayWriteSetLength)
LIST_TEST(FileIO_TouchQuery)
);
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPIPrivateTest, MAYBE_FileIO_Private) {
RunTestViaHTTP(
LIST_TEST(FileIO_RequestOSFileHandle)
LIST_TEST(FileIO_RequestOSFileHandleWithOpenExclusive)
LIST_TEST(FileIO_Mmap)
);
}
#if defined(OS_WIN)
#define MAYBE_Nacl_Newlib_FileIO DISABLED_FileIO
#define MAYBE_Nacl_Newlib_FileIO_Private DISABLED_FileIO_Private
#else
#define MAYBE_Nacl_Newlib_FileIO FileIO
#define MAYBE_Nacl_Newlib_FileIO_Private FileIO_Private
#endif
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, MAYBE_Nacl_Newlib_FileIO) {
RunTestViaHTTP(
LIST_TEST(FileIO_Open)
LIST_TEST(FileIO_AbortCalls)
LIST_TEST(FileIO_ParallelReads)
LIST_TEST(FileIO_ParallelWrites)
LIST_TEST(FileIO_NotAllowMixedReadWrite)
LIST_TEST(FileIO_ReadWriteSetLength)
LIST_TEST(FileIO_ReadToArrayWriteSetLength)
LIST_TEST(FileIO_TouchQuery)
);
}
IN_PROC_BROWSER_TEST_F(PPAPIPrivateNaClNewlibTest,
MAYBE_Nacl_Newlib_FileIO_Private) {
RunTestViaHTTP(
LIST_TEST(FileIO_RequestOSFileHandle)
LIST_TEST(FileIO_RequestOSFileHandleWithOpenExclusive)
LIST_TEST(FileIO_Mmap)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, DISABLED_NaCl_Glibc_FileIO) {
RunTestViaHTTP(
LIST_TEST(FileIO_Open)
LIST_TEST(FileIO_AbortCalls)
LIST_TEST(FileIO_ParallelReads)
LIST_TEST(FileIO_ParallelWrites)
LIST_TEST(FileIO_NotAllowMixedReadWrite)
LIST_TEST(FileIO_ReadWriteSetLength)
LIST_TEST(FileIO_ReadToArrayWriteSetLength)
LIST_TEST(FileIO_TouchQuery)
);
}
IN_PROC_BROWSER_TEST_F(PPAPIPrivateNaClGLibcTest,
DISABLED_NaCl_Glibc_FileIO_Private) {
RunTestViaHTTP(
LIST_TEST(FileIO_RequestOSFileHandle)
LIST_TEST(FileIO_RequestOSFileHandleWithOpenExclusive)
LIST_TEST(FileIO_Mmap)
);
}
#if defined(OS_WIN)
#define MAYBE_PNaCl_FileIO DISABLED_FileIO
#define MAYBE_PNaCl_FileIO_Private DISABLED_FileIO_Private
#else
#define MAYBE_PNaCl_FileIO FileIO
#define MAYBE_PNaCl_FileIO_Private FileIO_Private
#endif
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, MAYBE_PNaCl_FileIO) {
RunTestViaHTTP(
LIST_TEST(FileIO_Open)
LIST_TEST(FileIO_AbortCalls)
LIST_TEST(FileIO_ParallelReads)
LIST_TEST(FileIO_ParallelWrites)
LIST_TEST(FileIO_NotAllowMixedReadWrite)
LIST_TEST(FileIO_ReadWriteSetLength)
LIST_TEST(FileIO_ReadToArrayWriteSetLength)
LIST_TEST(FileIO_TouchQuery)
);
}
IN_PROC_BROWSER_TEST_F(PPAPIPrivateNaClPNaClTest, MAYBE_PNaCl_FileIO_Private) {
RunTestViaHTTP(
LIST_TEST(FileIO_RequestOSFileHandle)
LIST_TEST(FileIO_RequestOSFileHandleWithOpenExclusive)
LIST_TEST(FileIO_Mmap)
);
}
#if defined(OS_WIN)
#define MAYBE_FileMapping DISABLED_FileMapping
#else
#define MAYBE_FileMapping FileMapping
#endif
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(MAYBE_FileMapping)
TEST_PPAPI_NACL(MAYBE_FileMapping)
IN_PROC_BROWSER_TEST_F(PPAPITest, FileRef1) {
RunTestViaHTTP(
LIST_TEST(FileRef_Create)
LIST_TEST(FileRef_GetFileSystemType)
LIST_TEST(FileRef_GetName)
LIST_TEST(FileRef_GetPath)
LIST_TEST(FileRef_GetParent)
LIST_TEST(FileRef_MakeDirectory)
);
}
IN_PROC_BROWSER_TEST_F(PPAPITest, FileRef2) {
RunTestViaHTTP(
LIST_TEST(FileRef_QueryAndTouchFile)
LIST_TEST(FileRef_DeleteFileAndDirectory)
LIST_TEST(FileRef_RenameFileAndDirectory)
LIST_TEST(FileRef_Query)
LIST_TEST(FileRef_FileNameEscaping)
LIST_TEST(FileRef_ReadDirectoryEntries)
);
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, FileRef1) {
RunTestViaHTTP(
LIST_TEST(FileRef_Create)
LIST_TEST(FileRef_GetFileSystemType)
LIST_TEST(FileRef_GetName)
LIST_TEST(FileRef_GetPath)
LIST_TEST(FileRef_GetParent)
LIST_TEST(FileRef_MakeDirectory)
);
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, FileRef2) {
RunTestViaHTTP(
LIST_TEST(FileRef_QueryAndTouchFile)
LIST_TEST(FileRef_DeleteFileAndDirectory)
LIST_TEST(FileRef_RenameFileAndDirectory)
LIST_TEST(FileRef_Query)
LIST_TEST(FileRef_FileNameEscaping)
LIST_TEST(DISABLED_FileRef_ReadDirectoryEntries)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, FileRef1) {
RunTestViaHTTP(
LIST_TEST(FileRef_Create)
LIST_TEST(FileRef_GetFileSystemType)
LIST_TEST(FileRef_GetName)
LIST_TEST(FileRef_GetPath)
LIST_TEST(FileRef_GetParent)
LIST_TEST(FileRef_MakeDirectory)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, FileRef2) {
RunTestViaHTTP(
LIST_TEST(FileRef_QueryAndTouchFile)
LIST_TEST(FileRef_DeleteFileAndDirectory)
LIST_TEST(FileRef_RenameFileAndDirectory)
LIST_TEST(FileRef_Query)
LIST_TEST(FileRef_FileNameEscaping)
LIST_TEST(DISABLED_FileRef_ReadDirectoryEntries)
);
}
#if defined(OS_LINUX) && defined(ARCH_CPU_X86)
#define MAYBE_NaCl_Glibc_FileRef1 DISABLED_FileRef1
#define MAYBE_NaCl_Glibc_FileRef2 DISABLED_FileRef2
#else
#define MAYBE_NaCl_Glibc_FileRef1 FileRef1
#define MAYBE_NaCl_Glibc_FileRef2 FileRef2
#endif
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_NaCl_Glibc_FileRef1) {
RunTestViaHTTP(
LIST_TEST(FileRef_Create)
LIST_TEST(FileRef_GetFileSystemType)
LIST_TEST(FileRef_GetName)
LIST_TEST(FileRef_GetPath)
LIST_TEST(FileRef_GetParent)
LIST_TEST(FileRef_MakeDirectory)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_NaCl_Glibc_FileRef2) {
RunTestViaHTTP(
LIST_TEST(FileRef_QueryAndTouchFile)
LIST_TEST(FileRef_DeleteFileAndDirectory)
LIST_TEST(FileRef_RenameFileAndDirectory)
LIST_TEST(FileRef_Query)
LIST_TEST(FileRef_FileNameEscaping)
LIST_TEST(DISABLED_FileRef_ReadDirectoryEntries)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, FileRef1) {
RunTestViaHTTP(
LIST_TEST(FileRef_Create)
LIST_TEST(FileRef_GetFileSystemType)
LIST_TEST(FileRef_GetName)
LIST_TEST(FileRef_GetPath)
LIST_TEST(FileRef_GetParent)
LIST_TEST(FileRef_MakeDirectory)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, FileRef2) {
RunTestViaHTTP(
LIST_TEST(FileRef_QueryAndTouchFile)
LIST_TEST(FileRef_DeleteFileAndDirectory)
LIST_TEST(FileRef_RenameFileAndDirectory)
LIST_TEST(FileRef_Query)
LIST_TEST(FileRef_FileNameEscaping)
LIST_TEST(DISABLED_FileRef_ReadDirectoryEntries)
);
}
TEST_PPAPI_IN_PROCESS_VIA_HTTP(FileSystem)
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(FileSystem)
#if defined(OS_MACOSX) || defined(OS_WIN)
#define MAYBE_FileSystem DISABLED_FileSystem
#else
#define MAYBE_FileSystem FileSystem
#endif
TEST_PPAPI_NACL(MAYBE_FileSystem)
#if defined(OS_MACOSX)
#define MAYBE_Fullscreen DISABLED_Fullscreen
#elif defined(OS_LINUX)
#define MAYBE_Fullscreen DISABLED_Fullscreen
#elif defined(OS_WIN)
#define MAYBE_Fullscreen DISABLED_Fullscreen
#else
#define MAYBE_Fullscreen Fullscreen
#endif
TEST_PPAPI_IN_PROCESS_VIA_HTTP(MAYBE_Fullscreen)
TEST_PPAPI_OUT_OF_PROCESS_VIA_HTTP(MAYBE_Fullscreen)
TEST_PPAPI_NACL(MAYBE_Fullscreen)
TEST_PPAPI_OUT_OF_PROCESS(X509CertificatePrivate)
TEST_PPAPI_IN_PROCESS(UMA)
TEST_PPAPI_OUT_OF_PROCESS(UMA)
TEST_PPAPI_NACL(UMA)
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, NetAddress) {
RunTestViaHTTP(
LIST_TEST(NetAddress_IPv4Address)
LIST_TEST(NetAddress_IPv6Address)
LIST_TEST(NetAddress_DescribeAsString)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, NetAddress) {
RunTestViaHTTP(
LIST_TEST(NetAddress_IPv4Address)
LIST_TEST(NetAddress_IPv6Address)
LIST_TEST(NetAddress_DescribeAsString)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(NetAddress)) {
RunTestViaHTTP(
LIST_TEST(NetAddress_IPv4Address)
LIST_TEST(NetAddress_IPv6Address)
LIST_TEST(NetAddress_DescribeAsString)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, NetAddress) {
RunTestViaHTTP(
LIST_TEST(NetAddress_IPv4Address)
LIST_TEST(NetAddress_IPv6Address)
LIST_TEST(NetAddress_DescribeAsString)
);
}
IN_PROC_BROWSER_TEST_F(PPAPITest, NetAddressPrivate) {
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, NetAddressPrivate) {
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, NetAddressPrivate) {
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(NetAddressPrivate)) {
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(PPAPINaClPNaClTest, NetAddressPrivate) {
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(OutOfProcessPPAPITest, NetworkMonitor) {
RunTestViaHTTP(
LIST_TEST(NetworkMonitor_Basic)
LIST_TEST(NetworkMonitor_2Monitors)
LIST_TEST(NetworkMonitor_DeleteInCallback)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, NetworkMonitor) {
RunTestViaHTTP(
LIST_TEST(NetworkMonitor_Basic)
LIST_TEST(NetworkMonitor_2Monitors)
LIST_TEST(NetworkMonitor_DeleteInCallback)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(NetworkMonitor)) {
RunTestViaHTTP(
LIST_TEST(NetworkMonitor_Basic)
LIST_TEST(NetworkMonitor_2Monitors)
LIST_TEST(NetworkMonitor_DeleteInCallback)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, NetworkMonitor) {
RunTestViaHTTP(
LIST_TEST(NetworkMonitor_Basic)
LIST_TEST(NetworkMonitor_2Monitors)
LIST_TEST(NetworkMonitor_DeleteInCallback)
);
}
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_PROC_BROWSER_TEST_F(PPAPITest, WebSocket1) {
RunTestWithWebSocketServer(
LIST_TEST(WebSocket_IsWebSocket)
LIST_TEST(WebSocket_UninitializedPropertiesAccess)
LIST_TEST(WebSocket_InvalidConnect)
LIST_TEST(WebSocket_Protocols)
LIST_TEST(WebSocket_GetURL)
LIST_TEST(WebSocket_ValidConnect)
LIST_TEST(WebSocket_InvalidClose)
LIST_TEST(WebSocket_ValidClose)
LIST_TEST(WebSocket_GetProtocol)
LIST_TEST(WebSocket_TextSendReceive)
LIST_TEST(WebSocket_BinarySendReceive)
LIST_TEST(WebSocket_StressedSendReceive)
LIST_TEST(WebSocket_BufferedAmount)
);
}
IN_PROC_BROWSER_TEST_F(PPAPITest, WebSocket2) {
RunTestWithWebSocketServer(
LIST_TEST(WebSocket_AbortCallsWithCallback)
LIST_TEST(WebSocket_AbortSendMessageCall)
LIST_TEST(WebSocket_AbortCloseCall)
LIST_TEST(WebSocket_AbortReceiveMessageCall)
LIST_TEST(WebSocket_CcInterfaces)
LIST_TEST(WebSocket_UtilityInvalidConnect)
LIST_TEST(WebSocket_UtilityProtocols)
LIST_TEST(WebSocket_UtilityGetURL)
LIST_TEST(WebSocket_UtilityValidConnect)
LIST_TEST(WebSocket_UtilityInvalidClose)
LIST_TEST(WebSocket_UtilityValidClose)
LIST_TEST(WebSocket_UtilityGetProtocol)
LIST_TEST(WebSocket_UtilityTextSendReceive)
LIST_TEST(WebSocket_UtilityBinarySendReceive)
LIST_TEST(WebSocket_UtilityBufferedAmount));
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, WebSocket1) {
RunTestWithWebSocketServer(
LIST_TEST(WebSocket_IsWebSocket)
LIST_TEST(WebSocket_UninitializedPropertiesAccess)
LIST_TEST(WebSocket_InvalidConnect)
LIST_TEST(WebSocket_Protocols)
LIST_TEST(WebSocket_GetURL)
LIST_TEST(WebSocket_ValidConnect)
LIST_TEST(WebSocket_InvalidClose)
LIST_TEST(WebSocket_ValidClose)
LIST_TEST(WebSocket_GetProtocol)
LIST_TEST(WebSocket_TextSendReceive)
LIST_TEST(WebSocket_BinarySendReceive)
LIST_TEST(WebSocket_StressedSendReceive)
LIST_TEST(WebSocket_BufferedAmount)
);
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, WebSocket2) {
RunTestWithWebSocketServer(
LIST_TEST(WebSocket_AbortCallsWithCallback)
LIST_TEST(WebSocket_AbortSendMessageCall)
LIST_TEST(WebSocket_AbortCloseCall)
LIST_TEST(WebSocket_AbortReceiveMessageCall)
LIST_TEST(WebSocket_CcInterfaces)
LIST_TEST(WebSocket_UtilityInvalidConnect)
LIST_TEST(WebSocket_UtilityProtocols)
LIST_TEST(WebSocket_UtilityGetURL)
LIST_TEST(WebSocket_UtilityValidConnect)
LIST_TEST(WebSocket_UtilityInvalidClose)
LIST_TEST(WebSocket_UtilityValidClose)
LIST_TEST(WebSocket_UtilityGetProtocol)
LIST_TEST(WebSocket_UtilityTextSendReceive)
LIST_TEST(WebSocket_UtilityBinarySendReceive)
LIST_TEST(WebSocket_UtilityBufferedAmount));
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, WebSocket1) {
RunTestWithWebSocketServer(
LIST_TEST(WebSocket_IsWebSocket)
LIST_TEST(WebSocket_UninitializedPropertiesAccess)
LIST_TEST(WebSocket_InvalidConnect)
LIST_TEST(WebSocket_Protocols)
LIST_TEST(WebSocket_GetURL)
LIST_TEST(WebSocket_ValidConnect)
LIST_TEST(WebSocket_InvalidClose)
LIST_TEST(WebSocket_ValidClose)
LIST_TEST(WebSocket_GetProtocol)
LIST_TEST(WebSocket_TextSendReceive)
LIST_TEST(WebSocket_BinarySendReceive)
LIST_TEST(WebSocket_StressedSendReceive)
LIST_TEST(WebSocket_BufferedAmount)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, WebSocket2) {
RunTestWithWebSocketServer(
LIST_TEST(WebSocket_AbortCallsWithCallback)
LIST_TEST(WebSocket_AbortSendMessageCall)
LIST_TEST(WebSocket_AbortCloseCall)
LIST_TEST(WebSocket_AbortReceiveMessageCall)
LIST_TEST(WebSocket_CcInterfaces)
LIST_TEST(WebSocket_UtilityInvalidConnect)
LIST_TEST(WebSocket_UtilityProtocols)
LIST_TEST(WebSocket_UtilityGetURL)
LIST_TEST(WebSocket_UtilityValidConnect)
LIST_TEST(WebSocket_UtilityInvalidClose)
LIST_TEST(WebSocket_UtilityValidClose)
LIST_TEST(WebSocket_UtilityGetProtocol)
LIST_TEST(WebSocket_UtilityTextSendReceive)
LIST_TEST(WebSocket_UtilityBinarySendReceive)
LIST_TEST(WebSocket_UtilityBufferedAmount));
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(WebSocket1)) {
RunTestWithWebSocketServer(
LIST_TEST(WebSocket_IsWebSocket)
LIST_TEST(WebSocket_UninitializedPropertiesAccess)
LIST_TEST(WebSocket_InvalidConnect)
LIST_TEST(WebSocket_Protocols)
LIST_TEST(WebSocket_GetURL)
LIST_TEST(WebSocket_ValidConnect)
LIST_TEST(WebSocket_InvalidClose)
LIST_TEST(WebSocket_ValidClose)
LIST_TEST(WebSocket_GetProtocol)
LIST_TEST(WebSocket_TextSendReceive)
LIST_TEST(WebSocket_BinarySendReceive)
LIST_TEST(WebSocket_StressedSendReceive)
LIST_TEST(WebSocket_BufferedAmount)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(WebSocket2)) {
RunTestWithWebSocketServer(
LIST_TEST(WebSocket_AbortCallsWithCallback)
LIST_TEST(WebSocket_AbortSendMessageCall)
LIST_TEST(WebSocket_AbortCloseCall)
LIST_TEST(WebSocket_AbortReceiveMessageCall)
LIST_TEST(WebSocket_CcInterfaces)
LIST_TEST(WebSocket_UtilityInvalidConnect)
LIST_TEST(WebSocket_UtilityProtocols)
LIST_TEST(WebSocket_UtilityGetURL)
LIST_TEST(WebSocket_UtilityValidConnect)
LIST_TEST(WebSocket_UtilityInvalidClose)
LIST_TEST(WebSocket_UtilityValidClose)
LIST_TEST(WebSocket_UtilityGetProtocol)
LIST_TEST(WebSocket_UtilityTextSendReceive)
LIST_TEST(WebSocket_UtilityBinarySendReceive)
LIST_TEST(WebSocket_UtilityBufferedAmount));
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, WebSocket1) {
RunTestWithWebSocketServer(
LIST_TEST(WebSocket_IsWebSocket)
LIST_TEST(WebSocket_UninitializedPropertiesAccess)
LIST_TEST(WebSocket_InvalidConnect)
LIST_TEST(WebSocket_Protocols)
LIST_TEST(WebSocket_GetURL)
LIST_TEST(WebSocket_ValidConnect)
LIST_TEST(WebSocket_InvalidClose)
LIST_TEST(WebSocket_ValidClose)
LIST_TEST(WebSocket_GetProtocol)
LIST_TEST(WebSocket_TextSendReceive)
LIST_TEST(WebSocket_BinarySendReceive)
LIST_TEST(WebSocket_StressedSendReceive)
LIST_TEST(WebSocket_BufferedAmount)
);
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, WebSocket2) {
RunTestWithWebSocketServer(
LIST_TEST(WebSocket_AbortCallsWithCallback)
LIST_TEST(WebSocket_AbortSendMessageCall)
LIST_TEST(WebSocket_AbortCloseCall)
LIST_TEST(WebSocket_AbortReceiveMessageCall)
LIST_TEST(WebSocket_CcInterfaces)
LIST_TEST(WebSocket_UtilityInvalidConnect)
LIST_TEST(WebSocket_UtilityProtocols)
LIST_TEST(WebSocket_UtilityGetURL)
LIST_TEST(WebSocket_UtilityValidConnect)
LIST_TEST(WebSocket_UtilityInvalidClose)
LIST_TEST(WebSocket_UtilityValidClose)
LIST_TEST(WebSocket_UtilityGetProtocol)
LIST_TEST(WebSocket_UtilityTextSendReceive)
LIST_TEST(WebSocket_UtilityBinarySendReceive)
LIST_TEST(WebSocket_UtilityBufferedAmount));
}
IN_PROC_BROWSER_TEST_F(PPAPITest, AudioConfig) {
RunTest(
LIST_TEST(AudioConfig_RecommendSampleRate)
LIST_TEST(AudioConfig_ValidConfigs)
LIST_TEST(AudioConfig_InvalidConfigs));
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, AudioConfig) {
RunTest(
LIST_TEST(AudioConfig_RecommendSampleRate)
LIST_TEST(AudioConfig_ValidConfigs)
LIST_TEST(AudioConfig_InvalidConfigs));
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, AudioConfig) {
RunTestViaHTTP(
LIST_TEST(AudioConfig_RecommendSampleRate)
LIST_TEST(AudioConfig_ValidConfigs)
LIST_TEST(AudioConfig_InvalidConfigs));
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(AudioConfig)) {
RunTestViaHTTP(
LIST_TEST(AudioConfig_RecommendSampleRate)
LIST_TEST(AudioConfig_ValidConfigs)
LIST_TEST(AudioConfig_InvalidConfigs));
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, AudioConfig) {
RunTestViaHTTP(
LIST_TEST(AudioConfig_RecommendSampleRate)
LIST_TEST(AudioConfig_ValidConfigs)
LIST_TEST(AudioConfig_InvalidConfigs));
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, Audio) {
RunTest(LIST_TEST(Audio_Creation)
LIST_TEST(Audio_DestroyNoStop)
LIST_TEST(Audio_Failures)
LIST_TEST(Audio_AudioCallback1)
LIST_TEST(Audio_AudioCallback2)
LIST_TEST(Audio_AudioCallback3)
LIST_TEST(Audio_AudioCallback4));
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, Audio) {
RunTestViaHTTP(LIST_TEST(Audio_Creation)
LIST_TEST(Audio_DestroyNoStop)
LIST_TEST(Audio_Failures)
LIST_TEST(Audio_AudioCallback1)
LIST_TEST(Audio_AudioCallback2)
LIST_TEST(Audio_AudioCallback3)
LIST_TEST(Audio_AudioCallback4));
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(Audio)) {
RunTestViaHTTP(LIST_TEST(Audio_Creation)
LIST_TEST(Audio_DestroyNoStop)
LIST_TEST(Audio_Failures)
LIST_TEST(Audio_AudioCallback1)
LIST_TEST(Audio_AudioCallback2)
LIST_TEST(Audio_AudioCallback3)
LIST_TEST(Audio_AudioCallback4));
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, Audio) {
RunTestViaHTTP(LIST_TEST(Audio_Creation)
LIST_TEST(Audio_DestroyNoStop)
LIST_TEST(Audio_Failures)
LIST_TEST(Audio_AudioCallback1)
LIST_TEST(Audio_AudioCallback2)
LIST_TEST(Audio_AudioCallback3)
LIST_TEST(Audio_AudioCallback4));
}
TEST_PPAPI_IN_PROCESS(View_CreatedVisible);
TEST_PPAPI_OUT_OF_PROCESS(View_CreatedVisible);
TEST_PPAPI_NACL(View_CreatedVisible);
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, View_CreateInvisible) {
GURL url = GetTestFileUrl("View_CreatedInvisible");
chrome::NavigateParams params(browser(), url, content::PAGE_TRANSITION_LINK);
params.disposition = NEW_BACKGROUND_TAB;
ui_test_utils::NavigateToURL(¶ms);
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, View_PageHideShow) {
PPAPITestMessageHandler handler;
JavascriptTestObserver observer(
browser()->tab_strip_model()->GetActiveWebContents(),
&handler);
GURL url = GetTestFileUrl("View_PageHideShow");
ui_test_utils::NavigateToURL(browser(), url);
ASSERT_TRUE(observer.Run()) << handler.error_message();
EXPECT_STREQ("TestPageHideShow:Created", handler.message().c_str());
observer.Reset();
chrome::NavigateParams params(browser(), GURL(content::kAboutBlankURL),
content::PAGE_TRANSITION_LINK);
params.disposition = NEW_FOREGROUND_TAB;
ui_test_utils::NavigateToURL(¶ms);
ASSERT_TRUE(observer.Run()) << handler.error_message();
EXPECT_STREQ("TestPageHideShow:Hidden", handler.message().c_str());
observer.Reset();
browser()->tab_strip_model()->ActivateTabAt(0, true);
ASSERT_TRUE(observer.Run()) << handler.error_message();
EXPECT_STREQ("PASS", handler.message().c_str());
}
IN_PROC_BROWSER_TEST_F(PPAPITest, InputEvent_AcceptTouchEvent) {
std::string positive_tests[] = { "InputEvent_AcceptTouchEvent_1",
"InputEvent_AcceptTouchEvent_2",
"InputEvent_AcceptTouchEvent_3",
"InputEvent_AcceptTouchEvent_4"
};
for (size_t i = 0; i < arraysize(positive_tests); ++i) {
RenderViewHost* host = browser()->tab_strip_model()->
GetActiveWebContents()->GetRenderViewHost();
RunTest(positive_tests[i]);
EXPECT_TRUE(content::RenderViewHostTester::HasTouchEventHandler(host));
}
}
IN_PROC_BROWSER_TEST_F(PPAPITest, View) {
RunTest(LIST_TEST(View_SizeChange)
LIST_TEST(View_ClipChange));
}
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, View) {
RunTest(LIST_TEST(View_SizeChange)
LIST_TEST(View_ClipChange));
}
IN_PROC_BROWSER_TEST_F(PPAPINaClNewlibTest, View) {
RunTestViaHTTP(LIST_TEST(View_SizeChange)
LIST_TEST(View_ClipChange));
}
IN_PROC_BROWSER_TEST_F(PPAPINaClGLibcTest, MAYBE_GLIBC(View)) {
RunTestViaHTTP(LIST_TEST(View_SizeChange)
LIST_TEST(View_ClipChange));
}
IN_PROC_BROWSER_TEST_F(PPAPINaClPNaClTest, View) {
RunTestViaHTTP(LIST_TEST(View_SizeChange)
LIST_TEST(View_ClipChange));
}
IN_PROC_BROWSER_TEST_F(PPAPITest, FlashMessageLoop) {
RunTest(LIST_TEST(FlashMessageLoop_Basics)
LIST_TEST(FlashMessageLoop_RunWithoutQuit));
}
#if defined(OS_LINUX)
#define MAYBE_FlashMessageLoop DISABLED_FlashMessageLoop
#else
#define MAYBE_FlashMessageLoop FlashMessageLoop
#endif
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, MAYBE_FlashMessageLoop) {
RunTest(LIST_TEST(FlashMessageLoop_Basics)
LIST_TEST(FlashMessageLoop_RunWithoutQuit));
}
TEST_PPAPI_OUT_OF_PROCESS(MediaStreamAudioTrack)
TEST_PPAPI_NACL(MediaStreamAudioTrack)
TEST_PPAPI_OUT_OF_PROCESS(MediaStreamVideoTrack)
TEST_PPAPI_NACL(MediaStreamVideoTrack)
TEST_PPAPI_IN_PROCESS(MouseCursor)
TEST_PPAPI_OUT_OF_PROCESS(MouseCursor)
TEST_PPAPI_NACL(MouseCursor)
TEST_PPAPI_OUT_OF_PROCESS(NetworkProxy)
TEST_PPAPI_NACL(NetworkProxy)
TEST_PPAPI_OUT_OF_PROCESS(TrueTypeFont)
TEST_PPAPI_NACL(TrueTypeFont)
TEST_PPAPI_OUT_OF_PROCESS(VideoDestination)
TEST_PPAPI_NACL(VideoDestination)
TEST_PPAPI_OUT_OF_PROCESS(VideoSource)
TEST_PPAPI_NACL(VideoSource)
TEST_PPAPI_OUT_OF_PROCESS(Printing)
TEST_PPAPI_OUT_OF_PROCESS(MessageLoop_Basics)
#ifdef ENABLE_PEPPER_THREADING
TEST_PPAPI_OUT_OF_PROCESS(MessageLoop_Post)
#endif
TEST_PPAPI_OUT_OF_PROCESS(Flash_GetLocalTimeZoneOffset)
TEST_PPAPI_OUT_OF_PROCESS(Flash_GetProxyForURL)
TEST_PPAPI_OUT_OF_PROCESS(Flash_GetSetting)
TEST_PPAPI_OUT_OF_PROCESS(Flash_SetCrashData)
#if !defined(OS_WIN)
TEST_PPAPI_OUT_OF_PROCESS(FlashClipboard)
#endif
TEST_PPAPI_OUT_OF_PROCESS(FlashFile)
#if defined(OS_MACOSX)
#define MAYBE_FlashFullscreen DISABLED_FlashFullscreen
#else
#define MAYBE_FlashFullscreen FlashFullscreen
#endif
TEST_PPAPI_OUT_OF_PROCESS(MAYBE_FlashFullscreen)
TEST_PPAPI_OUT_OF_PROCESS(PDF)
IN_PROC_BROWSER_TEST_F(OutOfProcessPPAPITest, FlashDRM) {
RunTest(
#if (defined(OS_WIN) && defined(ENABLE_RLZ)) || defined(OS_CHROMEOS)
LIST_TEST(FlashDRM_GetDeviceID)
#endif
LIST_TEST(FlashDRM_GetHmonitor)
LIST_TEST(FlashDRM_GetVoucherFile));
}
TEST_PPAPI_IN_PROCESS(TalkPrivate)
TEST_PPAPI_OUT_OF_PROCESS(TalkPrivate)
#if defined(OS_CHROMEOS)
TEST_PPAPI_OUT_OF_PROCESS(OutputProtectionPrivate)
#endif