Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1221)

Side by Side Diff: content/browser/frame_host/navigation_controller_impl_unittest.cc

Issue 1841653003: Drop |languages| from {Format,Elide}Url* and IDNToUnicode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo in elide_url.cc Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/frame_host/navigation_controller_impl.h" 5 #include "content/browser/frame_host/navigation_controller_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 4929 matching lines...) Expand 10 before | Expand all | Expand 10 after
4940 params.did_create_new_entry = true; 4940 params.did_create_new_entry = true;
4941 params.url = kUrl2; 4941 params.url = kUrl2;
4942 params.page_state = PageState::CreateFromURL(kUrl2); 4942 params.page_state = PageState::CreateFromURL(kUrl2);
4943 params.was_within_same_page = true; 4943 params.was_within_same_page = true;
4944 main_test_rfh()->SendRendererInitiatedNavigationRequest(kUrl2, false); 4944 main_test_rfh()->SendRendererInitiatedNavigationRequest(kUrl2, false);
4945 main_test_rfh()->PrepareForCommit(); 4945 main_test_rfh()->PrepareForCommit();
4946 main_test_rfh()->SendNavigateWithParams(&params); 4946 main_test_rfh()->SendNavigateWithParams(&params);
4947 4947
4948 // The title should immediately be visible on the new NavigationEntry. 4948 // The title should immediately be visible on the new NavigationEntry.
4949 base::string16 new_title = 4949 base::string16 new_title =
4950 controller().GetLastCommittedEntry()->GetTitleForDisplay(std::string()); 4950 controller().GetLastCommittedEntry()->GetTitleForDisplay();
4951 EXPECT_EQ(title, new_title); 4951 EXPECT_EQ(title, new_title);
4952 FaviconStatus new_favicon = 4952 FaviconStatus new_favicon =
4953 controller().GetLastCommittedEntry()->GetFavicon(); 4953 controller().GetLastCommittedEntry()->GetFavicon();
4954 EXPECT_EQ(favicon.valid, new_favicon.valid); 4954 EXPECT_EQ(favicon.valid, new_favicon.valid);
4955 EXPECT_EQ(favicon.url, new_favicon.url); 4955 EXPECT_EQ(favicon.url, new_favicon.url);
4956 } 4956 }
4957 4957
4958 // Test that the navigation controller clears its session history when a 4958 // Test that the navigation controller clears its session history when a
4959 // navigation commits with the clear history list flag set. 4959 // navigation commits with the clear history list flag set.
4960 TEST_F(NavigationControllerTest, ClearHistoryList) { 4960 TEST_F(NavigationControllerTest, ClearHistoryList) {
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
5220 EXPECT_EQ(default_ssl_status.content_status, 5220 EXPECT_EQ(default_ssl_status.content_status,
5221 observer.details().ssl_status.content_status); 5221 observer.details().ssl_status.content_status);
5222 EXPECT_EQ( 5222 EXPECT_EQ(
5223 0u, 5223 0u,
5224 observer.details().ssl_status.signed_certificate_timestamp_ids.size()); 5224 observer.details().ssl_status.signed_certificate_timestamp_ids.size());
5225 5225
5226 EXPECT_EQ(1, main_test_rfh()->GetProcess()->bad_msg_count()); 5226 EXPECT_EQ(1, main_test_rfh()->GetProcess()->bad_msg_count());
5227 } 5227 }
5228 5228
5229 } // namespace content 5229 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/save_package_unittest.cc ('k') | content/browser/frame_host/navigation_entry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698