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/test/render_view_test.h" | 10 #include "chrome/test/base/render_view_test.h" |
11 #include "content/common/native_web_keyboard_event.h" | 11 #include "content/common/native_web_keyboard_event.h" |
12 #include "content/common/view_messages.h" | 12 #include "content/common/view_messages.h" |
13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLError.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
18 #include "ui/base/keycodes/keyboard_codes.h" | 18 #include "ui/base/keycodes/keyboard_codes.h" |
19 #include "ui/gfx/codec/jpeg_codec.h" | 19 #include "ui/gfx/codec/jpeg_codec.h" |
20 #include "webkit/glue/web_io_operators.h" | 20 #include "webkit/glue/web_io_operators.h" |
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 // Frame should stay in view-source mode. | 843 // Frame should stay in view-source mode. |
844 EXPECT_TRUE(web_frame->isViewSourceModeEnabled()); | 844 EXPECT_TRUE(web_frame->isViewSourceModeEnabled()); |
845 } | 845 } |
846 | 846 |
847 // Regression test for http://crbug.com/41562 | 847 // Regression test for http://crbug.com/41562 |
848 TEST_F(RenderViewTest, UpdateTargetURLWithInvalidURL) { | 848 TEST_F(RenderViewTest, UpdateTargetURLWithInvalidURL) { |
849 const GURL invalid_gurl("http://"); | 849 const GURL invalid_gurl("http://"); |
850 view_->setMouseOverURL(WebKit::WebURL(invalid_gurl)); | 850 view_->setMouseOverURL(WebKit::WebURL(invalid_gurl)); |
851 EXPECT_EQ(invalid_gurl, view_->target_url_); | 851 EXPECT_EQ(invalid_gurl, view_->target_url_); |
852 } | 852 } |
OLD | NEW |