| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/browser_url_handler.h" | 5 #include "chrome/browser/browser_url_handler.h" |
| 6 #include "chrome/browser/chrome_thread.h" |
| 6 #include "chrome/browser/renderer_host/test/test_render_view_host.h" | 7 #include "chrome/browser/renderer_host/test/test_render_view_host.h" |
| 7 #include "chrome/browser/tab_contents/navigation_controller.h" | 8 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 8 #include "chrome/browser/tab_contents/navigation_entry.h" | 9 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 9 #include "chrome/browser/tab_contents/render_view_host_manager.h" | 10 #include "chrome/browser/tab_contents/render_view_host_manager.h" |
| 10 #include "chrome/common/render_messages.h" | 11 #include "chrome/common/render_messages.h" |
| 11 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
| 12 #include "chrome/test/test_notification_tracker.h" | 13 #include "chrome/test/test_notification_tracker.h" |
| 13 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 16 |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 // Rewrite so it looks like chrome://about/memory | 285 // Rewrite so it looks like chrome://about/memory |
| 285 bool reverse_on_redirect = false; | 286 bool reverse_on_redirect = false; |
| 286 BrowserURLHandler::RewriteURLIfNecessary( | 287 BrowserURLHandler::RewriteURLIfNecessary( |
| 287 &about_url, profile_.get(), &reverse_on_redirect); | 288 &about_url, profile_.get(), &reverse_on_redirect); |
| 288 NavigationEntry about_entry(NULL /* instance */, -1 /* page_id */, about_url, | 289 NavigationEntry about_entry(NULL /* instance */, -1 /* page_id */, about_url, |
| 289 GURL() /* referrer */, string16() /* title */, | 290 GURL() /* referrer */, string16() /* title */, |
| 290 PageTransition::TYPED); | 291 PageTransition::TYPED); |
| 291 | 292 |
| 292 EXPECT_TRUE(ShouldSwapProcesses(&manager, &ntp_entry, &about_entry)); | 293 EXPECT_TRUE(ShouldSwapProcesses(&manager, &ntp_entry, &about_entry)); |
| 293 } | 294 } |
| OLD | NEW |