| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdlib.h> | 5 #include <stdlib.h> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/macros.h" |
| 9 #include "build/build_config.h" |
| 8 #include "content/browser/renderer_host/render_widget_host_impl.h" | 10 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 9 #include "content/common/view_messages.h" | 11 #include "content/common/view_messages.h" |
| 10 #include "content/public/browser/render_widget_host.h" | 12 #include "content/public/browser/render_widget_host.h" |
| 11 #include "content/public/browser/render_widget_host_view.h" | 13 #include "content/public/browser/render_widget_host_view.h" |
| 12 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 13 #include "content/public/common/content_switches.h" | 15 #include "content/public/common/content_switches.h" |
| 14 #include "content/public/test/browser_test_utils.h" | 16 #include "content/public/test/browser_test_utils.h" |
| 15 #include "content/public/test/content_browser_test.h" | 17 #include "content/public/test/content_browser_test.h" |
| 16 #include "content/public/test/content_browser_test_utils.h" | 18 #include "content/public/test/content_browser_test_utils.h" |
| 17 #include "content/public/test/test_navigation_observer.h" | 19 #include "content/public/test/test_navigation_observer.h" |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 TestNavigationObserver navigation_observer(shell()->web_contents(), 2); | 267 TestNavigationObserver navigation_observer(shell()->web_contents(), 2); |
| 266 shell()->LoadURL(test_url); | 268 shell()->LoadURL(test_url); |
| 267 navigation_observer.Wait(); | 269 navigation_observer.Wait(); |
| 268 | 270 |
| 269 EXPECT_EQ("NotSupportedError", | 271 EXPECT_EQ("NotSupportedError", |
| 270 shell()->web_contents()->GetLastCommittedURL().ref()); | 272 shell()->web_contents()->GetLastCommittedURL().ref()); |
| 271 } | 273 } |
| 272 #endif // defined(OS_ANDROID) | 274 #endif // defined(OS_ANDROID) |
| 273 | 275 |
| 274 } // namespace content | 276 } // namespace content |
| OLD | NEW |