OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
9 #include "content/public/common/content_paths.h" | 9 #include "content/public/common/content_paths.h" |
10 #include "content/public/test/browser_test_utils.h" | 10 #include "content/public/test/browser_test_utils.h" |
11 #include "content/public/test/content_browser_test.h" | 11 #include "content/public/test/content_browser_test.h" |
12 #include "content/public/test/content_browser_test_utils.h" | 12 #include "content/public/test/content_browser_test_utils.h" |
13 #include "content/shell/browser/shell.h" | 13 #include "content/shell/browser/shell.h" |
14 #include "grit/content_resources.h" | 14 #include "grit/content_resources.h" |
15 #include "grit/webui_resources.h" | 15 #include "grit/webui_resources.h" |
16 #include "net/base/net_util.h" | 16 #include "net/base/filename_util.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 class WebUIResourceBrowserTest : public ContentBrowserTest { | 20 class WebUIResourceBrowserTest : public ContentBrowserTest { |
21 public: | 21 public: |
22 WebUIResourceBrowserTest() {} | 22 WebUIResourceBrowserTest() {} |
23 virtual ~WebUIResourceBrowserTest() {} | 23 virtual ~WebUIResourceBrowserTest() {} |
24 | 24 |
25 // Runs all test functions in |file|, waiting for them to complete. | 25 // Runs all test functions in |file|, waiting for them to complete. |
26 void RunTest(const base::FilePath& file) { | 26 void RunTest(const base::FilePath& file) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, MediaInternals_PlayerInfo) { | 65 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, MediaInternals_PlayerInfo) { |
66 RunMediaInternalsTest(FILE_PATH_LITERAL("player_info_test.html")); | 66 RunMediaInternalsTest(FILE_PATH_LITERAL("player_info_test.html")); |
67 } | 67 } |
68 | 68 |
69 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, MediaInternals_Manager) { | 69 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, MediaInternals_Manager) { |
70 RunMediaInternalsTest(FILE_PATH_LITERAL("manager_test.html")); | 70 RunMediaInternalsTest(FILE_PATH_LITERAL("manager_test.html")); |
71 } | 71 } |
72 | 72 |
73 } // namespace content | 73 } // namespace content |
OLD | NEW |