| 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 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| (...skipping 1912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1923 EXPECT_TRUE(view()->main_render_frame_); | 1923 EXPECT_TRUE(view()->main_render_frame_); |
| 1924 } | 1924 } |
| 1925 | 1925 |
| 1926 TEST_F(RenderViewImplTest, GetSSLStatusOfFrame) { | 1926 TEST_F(RenderViewImplTest, GetSSLStatusOfFrame) { |
| 1927 LoadHTML("<!DOCTYPE html><html><body></body></html>"); | 1927 LoadHTML("<!DOCTYPE html><html><body></body></html>"); |
| 1928 | 1928 |
| 1929 WebLocalFrame* frame = GetMainFrame(); | 1929 WebLocalFrame* frame = GetMainFrame(); |
| 1930 SSLStatus ssl_status = view()->GetSSLStatusOfFrame(frame); | 1930 SSLStatus ssl_status = view()->GetSSLStatusOfFrame(frame); |
| 1931 EXPECT_FALSE(net::IsCertStatusError(ssl_status.cert_status)); | 1931 EXPECT_FALSE(net::IsCertStatusError(ssl_status.cert_status)); |
| 1932 | 1932 |
| 1933 const_cast<blink::WebURLResponse&>(frame->dataSource()->response()). | 1933 SSLStatus status; |
| 1934 setSecurityInfo( | 1934 status.cert_status = net::CERT_STATUS_ALL_ERRORS; |
| 1935 SerializeSecurityInfo(0, net::CERT_STATUS_ALL_ERRORS, 0, 0, | 1935 const_cast<blink::WebURLResponse&>(frame->dataSource()->response()) |
| 1936 SignedCertificateTimestampIDStatusList())); | 1936 .setSecurityInfo(SerializeSecurityInfo(status)); |
| 1937 ssl_status = view()->GetSSLStatusOfFrame(frame); | 1937 ssl_status = view()->GetSSLStatusOfFrame(frame); |
| 1938 EXPECT_TRUE(net::IsCertStatusError(ssl_status.cert_status)); | 1938 EXPECT_TRUE(net::IsCertStatusError(ssl_status.cert_status)); |
| 1939 } | 1939 } |
| 1940 | 1940 |
| 1941 TEST_F(RenderViewImplTest, MessageOrderInDidChangeSelection) { | 1941 TEST_F(RenderViewImplTest, MessageOrderInDidChangeSelection) { |
| 1942 view()->set_send_content_state_immediately(true); | 1942 view()->set_send_content_state_immediately(true); |
| 1943 LoadHTML("<textarea id=\"test\"></textarea>"); | 1943 LoadHTML("<textarea id=\"test\"></textarea>"); |
| 1944 | 1944 |
| 1945 view()->handling_input_event_ = true; | 1945 view()->handling_input_event_ = true; |
| 1946 ExecuteJavaScriptForTests("document.getElementById('test').focus();"); | 1946 ExecuteJavaScriptForTests("document.getElementById('test').focus();"); |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2357 FROM_HERE, | 2357 FROM_HERE, |
| 2358 base::Bind(&DevToolsAgentTest::CloseWhilePaused, base::Unretained(this))); | 2358 base::Bind(&DevToolsAgentTest::CloseWhilePaused, base::Unretained(this))); |
| 2359 ExecuteJavaScriptForTests("debugger;"); | 2359 ExecuteJavaScriptForTests("debugger;"); |
| 2360 | 2360 |
| 2361 // CloseWhilePaused should resume execution and continue here. | 2361 // CloseWhilePaused should resume execution and continue here. |
| 2362 EXPECT_FALSE(IsPaused()); | 2362 EXPECT_FALSE(IsPaused()); |
| 2363 Detach(); | 2363 Detach(); |
| 2364 } | 2364 } |
| 2365 | 2365 |
| 2366 } // namespace content | 2366 } // namespace content |
| OLD | NEW |