Home | History | Annotate | Download | only in extensions
      1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "base/path_service.h"
      6 #include "chrome/browser/extensions/extension_apitest.h"
      7 #include "chrome/common/chrome_paths.h"
      8 #include "chrome/test/ui_test_utils.h"
      9 #include "net/base/mock_host_resolver.h"
     10 
     11 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WebSocket) {
     12   FilePath websocket_root_dir;
     13   PathService::Get(chrome::DIR_TEST_DATA, &websocket_root_dir);
     14   websocket_root_dir = websocket_root_dir.AppendASCII("layout_tests")
     15       .AppendASCII("LayoutTests");
     16   ui_test_utils::TestWebSocketServer server;
     17   ASSERT_TRUE(server.Start(websocket_root_dir));
     18   ASSERT_TRUE(RunExtensionTest("websocket")) << message_;
     19 }
     20