diff options
author | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-10 01:52:12 +0000 |
---|---|---|
committer | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-10 01:52:12 +0000 |
commit | 8db829121c832bac66a513b111d37ef752b3b03b (patch) | |
tree | e88f58b634b40e120972045b756e1cc1ed769196 /chrome/browser/service | |
parent | 99c49f669269d90bdfe4610fa7179d140edd55d9 (diff) | |
download | chromium_src-8db829121c832bac66a513b111d37ef752b3b03b.zip chromium_src-8db829121c832bac66a513b111d37ef752b3b03b.tar.gz chromium_src-8db829121c832bac66a513b111d37ef752b3b03b.tar.bz2 |
Mark CheckPid,DieOnDisconnect,LaunchTwice,MultipleLaunchTasks,SameLaunchTask as FAILS on mac.
TBR=hclam@chromium.org
BUG=75518
TEST=none
Review URL: http://codereview.chromium.org/6612063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/service')
-rw-r--r-- | chrome/browser/service/service_process_control_browsertest.cc | 42 |
1 files changed, 37 insertions, 5 deletions
diff --git a/chrome/browser/service/service_process_control_browsertest.cc b/chrome/browser/service/service_process_control_browsertest.cc index ff6e514..d10d28a 100644 --- a/chrome/browser/service/service_process_control_browsertest.cc +++ b/chrome/browser/service/service_process_control_browsertest.cc @@ -121,7 +121,13 @@ IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, // This tests the case when a service process is launched when browser // starts but we try to launch it again in the remoting setup dialog. -IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, LaunchTwice) { +// Fails on mac. http://crbug.com/75518 +#if defined(OS_MACOSX) +#define MAYBE_LaunchTwice FAILS_LaunchTwice +#else +#define MAYBE_LaunchTwice LaunchTwice +#endif +IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, MAYBE_LaunchTwice) { // Launch the service process the first time. LaunchServiceProcessControl(); @@ -146,7 +152,14 @@ static void DecrementUntilZero(int* count) { // Invoke multiple Launch calls in succession and ensure that all the tasks // get invoked. -IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, MultipleLaunchTasks) { +// Fails on mac. http://crbug.com/75518 +#if defined(OS_MACOSX) +#define MAYBE_MultipleLaunchTasks FAILS_MultipleLaunchTasks +#else +#define MAYBE_MultipleLaunchTasks MultipleLaunchTasks +#endif +IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, + MAYBE_MultipleLaunchTasks) { ServiceProcessControl* process = ServiceProcessControlManager::GetInstance()->GetProcessControl( browser()->profile()); @@ -165,7 +178,13 @@ IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, MultipleLaunchTasks) { } // Make sure using the same task for success and failure tasks works. -IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, SameLaunchTask) { +// Fails on mac. http://crbug.com/75518 +#if defined(OS_MACOSX) +#define MAYBE_SameLaunchTask FAILS_SameLaunchTask +#else +#define MAYBE_SameLaunchTask SameLaunchTask +#endif +IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, MAYBE_SameLaunchTask) { ServiceProcessControl* process = ServiceProcessControlManager::GetInstance()->GetProcessControl( browser()->profile()); @@ -184,7 +203,14 @@ IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, SameLaunchTask) { // Tests whether disconnecting from the service IPC causes the service process // to die. -IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, DieOnDisconnect) { +// Fails on mac. http://crbug.com/75518 +#if defined(OS_MACOSX) +#define MAYBE_DieOnDisconnect FAILS_DieOnDisconnect +#else +#define MAYBE_DieOnDisconnect DieOnDisconnect +#endif +IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, + MAYBE_DieOnDisconnect) { // Launch the service process. LaunchServiceProcessControl(); // Make sure we are connected to the service process. @@ -208,7 +234,13 @@ IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, WaitForShutdown(); } -IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, CheckPid) { +// Fails on mac. http://crbug.com/75518 +#if defined(OS_MACOSX) +#define MAYBE_CheckPid FAILS_CheckPid +#else +#define MAYBE_CheckPid CheckPid +#endif +IN_PROC_BROWSER_TEST_F(ServiceProcessControlBrowserTest, MAYBE_CheckPid) { base::ProcessId service_pid; EXPECT_FALSE(GetServiceProcessData(NULL, &service_pid)); // Launch the service process. |