Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: chrome/browser/extensions/extension_websocket_apitest.cc

Issue 11087027: WebSocket test server migration on ExtensionApiTest.WebSocket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix copyright Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698