| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #undef LOG | 9 #undef LOG |
| 10 | 10 |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "webkit/api/public/WebDataSource.h" | 13 #include "third_party/WebKit/WebKit/chromium/public/WebDataSource.h" |
| 14 #include "webkit/api/public/WebFrame.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
| 15 #include "webkit/api/public/WebString.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
| 16 #include "webkit/api/public/WebURL.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
| 17 #include "webkit/api/public/WebVector.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebVector.h" |
| 18 #include "webkit/api/public/WebView.h" | 18 #include "third_party/WebKit/WebKit/chromium/public/WebView.h" |
| 19 #include "webkit/glue/webkit_glue.h" | 19 #include "webkit/glue/webkit_glue.h" |
| 20 #include "webkit/tools/test_shell/test_shell_test.h" | 20 #include "webkit/tools/test_shell/test_shell_test.h" |
| 21 | 21 |
| 22 using WebKit::WebDataSource; | 22 using WebKit::WebDataSource; |
| 23 using WebKit::WebFrame; | 23 using WebKit::WebFrame; |
| 24 using WebKit::WebString; | 24 using WebKit::WebString; |
| 25 using WebKit::WebURL; | 25 using WebKit::WebURL; |
| 26 using WebKit::WebVector; | 26 using WebKit::WebVector; |
| 27 | 27 |
| 28 typedef TestShellTest IFrameRedirectTest; | 28 typedef TestShellTest IFrameRedirectTest; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 43 WebFrame* iframe = | 43 WebFrame* iframe = |
| 44 test_shell_->webView()->findFrameByName(WebString::fromUTF8("ifr")); | 44 test_shell_->webView()->findFrameByName(WebString::fromUTF8("ifr")); |
| 45 ASSERT_TRUE(iframe != NULL); | 45 ASSERT_TRUE(iframe != NULL); |
| 46 WebDataSource* iframe_ds = iframe->dataSource(); | 46 WebDataSource* iframe_ds = iframe->dataSource(); |
| 47 ASSERT_TRUE(iframe_ds != NULL); | 47 ASSERT_TRUE(iframe_ds != NULL); |
| 48 WebVector<WebURL> redirects; | 48 WebVector<WebURL> redirects; |
| 49 iframe_ds->redirectChain(redirects); | 49 iframe_ds->redirectChain(redirects); |
| 50 ASSERT_FALSE(redirects.isEmpty()); | 50 ASSERT_FALSE(redirects.isEmpty()); |
| 51 ASSERT_TRUE(GURL(redirects[0]) == GURL("about:blank")); | 51 ASSERT_TRUE(GURL(redirects[0]) == GURL("about:blank")); |
| 52 } | 52 } |
| OLD | NEW |