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/basictypes.h" | 5 #include "base/basictypes.h" |
6 | 6 |
7 #include "base/memory/shared_memory.h" | 7 #include "base/memory/shared_memory.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "content/common/ssl_status_serialization.h" | 10 #include "content/common/ssl_status_serialization.h" |
11 #include "content/common/view_messages.h" | 11 #include "content/common/view_messages.h" |
12 #include "content/public/browser/native_web_keyboard_event.h" | 12 #include "content/public/browser/native_web_keyboard_event.h" |
13 #include "content/public/browser/web_ui_controller_factory.h" | 13 #include "content/public/browser/web_ui_controller_factory.h" |
14 #include "content/public/common/bindings_policy.h" | 14 #include "content/public/common/bindings_policy.h" |
15 #include "content/public/common/page_zoom.h" | 15 #include "content/public/common/page_zoom.h" |
16 #include "content/public/common/url_constants.h" | 16 #include "content/public/common/url_constants.h" |
17 #include "content/public/common/url_utils.h" | 17 #include "content/public/common/url_utils.h" |
18 #include "content/public/renderer/document_state.h" | 18 #include "content/public/renderer/document_state.h" |
19 #include "content/public/renderer/history_item_serialization.h" | 19 #include "content/public/renderer/history_item_serialization.h" |
20 #include "content/public/renderer/navigation_state.h" | 20 #include "content/public/renderer/navigation_state.h" |
21 #include "content/public/test/render_view_test.h" | 21 #include "content/public/test/render_view_test.h" |
22 #include "content/renderer/render_view_impl.h" | 22 #include "content/renderer/render_view_impl.h" |
| 23 #include "content/shell/browser/shell_content_browser_client.h" |
23 #include "content/shell/common/shell_content_client.h" | 24 #include "content/shell/common/shell_content_client.h" |
24 #include "content/shell/shell_content_browser_client.h" | |
25 #include "content/test/mock_keyboard.h" | 25 #include "content/test/mock_keyboard.h" |
26 #include "net/base/net_errors.h" | 26 #include "net/base/net_errors.h" |
27 #include "net/cert/cert_status_flags.h" | 27 #include "net/cert/cert_status_flags.h" |
28 #include "testing/gtest/include/gtest/gtest.h" | 28 #include "testing/gtest/include/gtest/gtest.h" |
29 #include "third_party/WebKit/public/platform/WebData.h" | 29 #include "third_party/WebKit/public/platform/WebData.h" |
30 #include "third_party/WebKit/public/platform/WebHTTPBody.h" | 30 #include "third_party/WebKit/public/platform/WebHTTPBody.h" |
31 #include "third_party/WebKit/public/platform/WebString.h" | 31 #include "third_party/WebKit/public/platform/WebString.h" |
32 #include "third_party/WebKit/public/platform/WebURLError.h" | 32 #include "third_party/WebKit/public/platform/WebURLError.h" |
33 #include "third_party/WebKit/public/platform/WebURLResponse.h" | 33 #include "third_party/WebKit/public/platform/WebURLResponse.h" |
34 #include "third_party/WebKit/public/web/WebDataSource.h" | 34 #include "third_party/WebKit/public/web/WebDataSource.h" |
(...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1931 EXPECT_FALSE(net::IsCertStatusError(ssl_status.cert_status)); | 1931 EXPECT_FALSE(net::IsCertStatusError(ssl_status.cert_status)); |
1932 | 1932 |
1933 const_cast<WebKit::WebURLResponse&>(frame->dataSource()->response()). | 1933 const_cast<WebKit::WebURLResponse&>(frame->dataSource()->response()). |
1934 setSecurityInfo( | 1934 setSecurityInfo( |
1935 SerializeSecurityInfo(0, net::CERT_STATUS_ALL_ERRORS, 0, 0)); | 1935 SerializeSecurityInfo(0, net::CERT_STATUS_ALL_ERRORS, 0, 0)); |
1936 ssl_status = view()->GetSSLStatusOfFrame(frame); | 1936 ssl_status = view()->GetSSLStatusOfFrame(frame); |
1937 EXPECT_TRUE(net::IsCertStatusError(ssl_status.cert_status)); | 1937 EXPECT_TRUE(net::IsCertStatusError(ssl_status.cert_status)); |
1938 } | 1938 } |
1939 | 1939 |
1940 } // namespace content | 1940 } // namespace content |
OLD | NEW |