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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/content_settings/cookie_settings.h" | 10 #include "chrome/browser/content_settings/cookie_settings.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "content/public/browser/notification_observer.h" | 25 #include "content/public/browser/notification_observer.h" |
26 #include "content/public/browser/notification_service.h" | 26 #include "content/public/browser/notification_service.h" |
27 #include "content/public/browser/plugin_service.h" | 27 #include "content/public/browser/plugin_service.h" |
28 #include "content/public/browser/render_frame_host.h" | 28 #include "content/public/browser/render_frame_host.h" |
29 #include "content/public/browser/render_process_host.h" | 29 #include "content/public/browser/render_process_host.h" |
30 #include "content/public/browser/render_view_host.h" | 30 #include "content/public/browser/render_view_host.h" |
31 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" |
32 #include "content/public/common/content_switches.h" | 32 #include "content/public/common/content_switches.h" |
33 #include "content/public/test/browser_test_utils.h" | 33 #include "content/public/test/browser_test_utils.h" |
34 #include "content/public/test/test_utils.h" | 34 #include "content/public/test/test_utils.h" |
35 #include "content/test/net/url_request_mock_http_job.h" | |
36 #include "net/test/spawned_test_server/spawned_test_server.h" | 35 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 36 #include "net/test/url_request/url_request_mock_http_job.h" |
37 | 37 |
38 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. | 38 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. |
39 | 39 |
40 #if defined(OS_MACOSX) | 40 #if defined(OS_MACOSX) |
41 #include "base/mac/scoped_nsautorelease_pool.h" | 41 #include "base/mac/scoped_nsautorelease_pool.h" |
42 #endif | 42 #endif |
43 | 43 |
44 using content::BrowserThread; | 44 using content::BrowserThread; |
45 using content::URLRequestMockHTTPJob; | 45 using net::URLRequestMockHTTPJob; |
46 | 46 |
47 class ContentSettingsTest : public InProcessBrowserTest { | 47 class ContentSettingsTest : public InProcessBrowserTest { |
48 public: | 48 public: |
49 ContentSettingsTest() | 49 ContentSettingsTest() |
50 : https_server_(net::SpawnedTestServer::TYPE_HTTPS, | 50 : https_server_(net::SpawnedTestServer::TYPE_HTTPS, |
51 net::SpawnedTestServer::SSLOptions( | 51 net::SpawnedTestServer::SSLOptions( |
52 net::SpawnedTestServer::SSLOptions::CERT_OK), | 52 net::SpawnedTestServer::SSLOptions::CERT_OK), |
53 base::FilePath(FILE_PATH_LITERAL("chrome/test/data"))) { | 53 base::FilePath(FILE_PATH_LITERAL("chrome/test/data"))) { |
54 } | 54 } |
55 | 55 |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 #if defined(OS_WIN) && defined(USE_ASH) | 727 #if defined(OS_WIN) && defined(USE_ASH) |
728 // Disable this test in Metro+Ash for now (http://crbug.com/262796). | 728 // Disable this test in Metro+Ash for now (http://crbug.com/262796). |
729 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) | 729 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) |
730 return; | 730 return; |
731 #endif | 731 #endif |
732 RunJavaScriptBlockedTest("load_nacl_no_js.html", true); | 732 RunJavaScriptBlockedTest("load_nacl_no_js.html", true); |
733 } | 733 } |
734 #endif // !defined(DISABLE_NACL) | 734 #endif // !defined(DISABLE_NACL) |
735 | 735 |
736 #endif // defined(ENABLE_PLUGINS) | 736 #endif // defined(ENABLE_PLUGINS) |
OLD | NEW |