Index: chrome/browser/extensions/api/socket/socket_apitest.cc |
diff --git a/chrome/browser/extensions/api/socket/socket_apitest.cc b/chrome/browser/extensions/api/socket/socket_apitest.cc |
index 59268bb5d0c53b85a6cfa7cdd6f90d4db301f730..c9ded1e91ed16b9696e9a7b33d3e89e4bf015bff 100644 |
--- a/chrome/browser/extensions/api/socket/socket_apitest.cc |
+++ b/chrome/browser/extensions/api/socket/socket_apitest.cc |
@@ -145,6 +145,7 @@ IN_PROC_BROWSER_TEST_F(SocketApiTest, SocketUDPExtension) { |
base::StringPrintf("udp:%s:%d", host_port_pair.host().c_str(), port)); |
EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
+ CloseShellWindowsAndWaitForAppToExit(); |
} |
IN_PROC_BROWSER_TEST_F(SocketApiTest, SocketTCPExtension) { |
@@ -172,6 +173,7 @@ IN_PROC_BROWSER_TEST_F(SocketApiTest, SocketTCPExtension) { |
base::StringPrintf("tcp:%s:%d", host_port_pair.host().c_str(), port)); |
EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
+ CloseShellWindowsAndWaitForAppToExit(); |
} |
IN_PROC_BROWSER_TEST_F(SocketApiTest, SocketTCPServerExtension) { |
@@ -184,6 +186,7 @@ IN_PROC_BROWSER_TEST_F(SocketApiTest, SocketTCPServerExtension) { |
base::StringPrintf("tcp_server:%s:%d", kHostname.c_str(), kPort)); |
EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
+ CloseShellWindowsAndWaitForAppToExit(); |
} |
IN_PROC_BROWSER_TEST_F(SocketApiTest, SocketExperimentalPermissionTest) { |
@@ -197,9 +200,12 @@ IN_PROC_BROWSER_TEST_F(SocketApiTest, SocketExperimentalPermissionTest) { |
listener.Reply("go"); |
EXPECT_TRUE(catcher.GetNextResult()) << catcher.message(); |
+ CloseShellWindowsAndWaitForAppToExit(); |
} |
IN_PROC_BROWSER_TEST_F(SocketApiTest, SocketTCPServerUnbindOnUnload) { |
ASSERT_TRUE(RunExtensionTest("socket/unload")) << message_; |
+ CloseShellWindowsAndWaitForAppToExit(); |
ASSERT_TRUE(RunExtensionTest("socket/unload")) << message_; |
+ CloseShellWindowsAndWaitForAppToExit(); |
} |