| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> |
| 6 |
| 7 #include "base/macros.h" |
| 6 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 8 #include "chrome/browser/browser_about_handler.h" | 10 #include "chrome/browser/browser_about_handler.h" |
| 9 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
| 10 #include "chrome/test/base/testing_profile.h" | 12 #include "chrome/test/base/testing_profile.h" |
| 11 #include "content/public/browser/navigation_controller.h" | 13 #include "content/public/browser/navigation_controller.h" |
| 12 #include "content/public/browser/navigation_entry.h" | 14 #include "content/public/browser/navigation_entry.h" |
| 13 #include "content/public/common/referrer.h" | 15 #include "content/public/common/referrer.h" |
| 14 #include "content/public/test/test_browser_thread.h" | 16 #include "content/public/test/test_browser_thread.h" |
| 15 #include "content/public/test/test_browser_thread_bundle.h" | 17 #include "content/public/test/test_browser_thread_bundle.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // virtual URL. | 97 // virtual URL. |
| 96 GURL rewritten_url("http://foo/"); | 98 GURL rewritten_url("http://foo/"); |
| 97 | 99 |
| 98 TestingProfile profile; | 100 TestingProfile profile; |
| 99 scoped_ptr<NavigationEntry> entry(NavigationController::CreateNavigationEntry( | 101 scoped_ptr<NavigationEntry> entry(NavigationController::CreateNavigationEntry( |
| 100 url, Referrer(), ui::PAGE_TRANSITION_RELOAD, false, std::string(), | 102 url, Referrer(), ui::PAGE_TRANSITION_RELOAD, false, std::string(), |
| 101 &profile)); | 103 &profile)); |
| 102 EXPECT_EQ(fixed_url, entry->GetVirtualURL()); | 104 EXPECT_EQ(fixed_url, entry->GetVirtualURL()); |
| 103 EXPECT_EQ(rewritten_url, entry->GetURL()); | 105 EXPECT_EQ(rewritten_url, entry->GetURL()); |
| 104 } | 106 } |
| OLD | NEW |