| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 15 #include "webkit/glue/webkit_glue.h" | 15 #include "webkit/glue/webkit_glue.h" |
| 16 #include "webkit/tools/test_shell/test_shell_test.h" | 16 #include "webkit/tools/test_shell/test_shell_test.h" |
| 17 | 17 |
| 18 using WebKit::WebDataSource; | 18 using WebKit::WebDataSource; |
| 19 using WebKit::WebFrame; | 19 using WebKit::WebFrame; |
| 20 using WebKit::WebString; | 20 using WebKit::WebString; |
| 21 using WebKit::WebURL; | 21 using WebKit::WebURL; |
| 22 using WebKit::WebVector; | 22 using WebKit::WebVector; |
| 23 | 23 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 39 WebFrame* iframe = | 39 WebFrame* iframe = |
| 40 test_shell_->webView()->findFrameByName(WebString::fromUTF8("ifr")); | 40 test_shell_->webView()->findFrameByName(WebString::fromUTF8("ifr")); |
| 41 ASSERT_TRUE(iframe != NULL); | 41 ASSERT_TRUE(iframe != NULL); |
| 42 WebDataSource* iframe_ds = iframe->dataSource(); | 42 WebDataSource* iframe_ds = iframe->dataSource(); |
| 43 ASSERT_TRUE(iframe_ds != NULL); | 43 ASSERT_TRUE(iframe_ds != NULL); |
| 44 WebVector<WebURL> redirects; | 44 WebVector<WebURL> redirects; |
| 45 iframe_ds->redirectChain(redirects); | 45 iframe_ds->redirectChain(redirects); |
| 46 ASSERT_FALSE(redirects.isEmpty()); | 46 ASSERT_FALSE(redirects.isEmpty()); |
| 47 ASSERT_TRUE(GURL(redirects[0]) == GURL("about:blank")); | 47 ASSERT_TRUE(GURL(redirects[0]) == GURL("about:blank")); |
| 48 } | 48 } |
| OLD | NEW |