| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/shared_memory.h" | 7 #include "base/shared_memory.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/common/render_messages.h" | |
| 11 #include "chrome/test/render_view_test.h" | 10 #include "chrome/test/render_view_test.h" |
| 12 #include "content/common/native_web_keyboard_event.h" | 11 #include "content/common/native_web_keyboard_event.h" |
| 13 #include "content/common/view_messages.h" | 12 #include "content/common/view_messages.h" |
| 14 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 19 #include "ui/base/keycodes/keyboard_codes.h" | 18 #include "ui/base/keycodes/keyboard_codes.h" |
| 20 #include "ui/gfx/codec/jpeg_codec.h" | 19 #include "ui/gfx/codec/jpeg_codec.h" |
| (...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 // Frame should stay in view-source mode. | 769 // Frame should stay in view-source mode. |
| 771 EXPECT_TRUE(web_frame->isViewSourceModeEnabled()); | 770 EXPECT_TRUE(web_frame->isViewSourceModeEnabled()); |
| 772 } | 771 } |
| 773 | 772 |
| 774 // Regression test for http://crbug.com/41562 | 773 // Regression test for http://crbug.com/41562 |
| 775 TEST_F(RenderViewTest, UpdateTargetURLWithInvalidURL) { | 774 TEST_F(RenderViewTest, UpdateTargetURLWithInvalidURL) { |
| 776 const GURL invalid_gurl("http://"); | 775 const GURL invalid_gurl("http://"); |
| 777 view_->setMouseOverURL(WebKit::WebURL(invalid_gurl)); | 776 view_->setMouseOverURL(WebKit::WebURL(invalid_gurl)); |
| 778 EXPECT_EQ(invalid_gurl, view_->target_url_); | 777 EXPECT_EQ(invalid_gurl, view_->target_url_); |
| 779 } | 778 } |
| OLD | NEW |