OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
jam
2011/05/19 17:21:16
it seems that almost all of this file belongs in c
Avi (use Gerrit)
2011/05/19 22:28:41
Done.
| |
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/common/render_messages.h" | 6 #include "chrome/common/render_messages.h" |
7 #include "chrome/common/url_constants.h" | 7 #include "chrome/common/url_constants.h" |
8 #include "chrome/test/test_notification_tracker.h" | 8 #include "chrome/test/test_notification_tracker.h" |
9 #include "chrome/test/testing_profile.h" | 9 #include "chrome/test/testing_profile.h" |
10 #include "content/browser/browser_thread.h" | 10 #include "content/browser/browser_thread.h" |
11 #include "content/browser/renderer_host/test_render_view_host.h" | 11 #include "content/browser/renderer_host/test_render_view_host.h" |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
354 // That should have cancelled the pending RVH, and the evil RVH should be the | 354 // That should have cancelled the pending RVH, and the evil RVH should be the |
355 // current one. | 355 // current one. |
356 EXPECT_TRUE(contents()->render_manager()->pending_render_view_host() == NULL); | 356 EXPECT_TRUE(contents()->render_manager()->pending_render_view_host() == NULL); |
357 EXPECT_EQ(evil_rvh, contents()->render_manager()->current_host()); | 357 EXPECT_EQ(evil_rvh, contents()->render_manager()->current_host()); |
358 | 358 |
359 // Also we should not have a pending navigation entry. | 359 // Also we should not have a pending navigation entry. |
360 NavigationEntry* entry = contents()->controller().GetActiveEntry(); | 360 NavigationEntry* entry = contents()->controller().GetActiveEntry(); |
361 ASSERT_TRUE(entry != NULL); | 361 ASSERT_TRUE(entry != NULL); |
362 EXPECT_EQ(url2, entry->url()); | 362 EXPECT_EQ(url2, entry->url()); |
363 } | 363 } |
OLD | NEW |