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 "base/path_service.h" | 5 #include "base/path_service.h" |
6 #include "chrome/browser/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
7 #include "content/public/common/content_paths.h" | 7 #include "content/public/common/content_paths.h" |
8 #include "net/base/mock_host_resolver.h" | 8 #include "net/base/mock_host_resolver.h" |
9 | 9 |
10 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebSocket) { | 10 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebSocket) { |
11 FilePath websocket_root_dir; | 11 ASSERT_TRUE(StartWebSocketServer( |
12 ASSERT_TRUE(PathService::Get(content::DIR_LAYOUT_TESTS, &websocket_root_dir)); | 12 FilePath().AppendASCII("net/data/websocket"))); |
Ryan Sleevi
2012/10/09 19:39:07
Could you explain why you're no longer using PathS
Takashi Toyoshima
2012/10/10 01:34:48
I follows BrowserTestBase::CreateTestServer() styl
Takashi Toyoshima
2012/10/10 04:14:41
The reason of relative path exists in LocalTestSer
| |
13 ASSERT_TRUE(StartWebSocketServer(websocket_root_dir)); | |
14 ASSERT_TRUE(RunExtensionTest("websocket")) << message_; | 13 ASSERT_TRUE(RunExtensionTest("websocket")) << message_; |
15 } | 14 } |
OLD | NEW |