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

Side by Side Diff: chrome/browser/previews/previews_infobar_tab_helper_unittest.cc

Issue 2542503002: [Offline pages] Fixing OfflinePageUtis::EqualsIgnoringFragment (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « chrome/browser/android/offline_pages/offline_page_utils_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/previews/previews_infobar_tab_helper.h" 5 #include "chrome/browser/previews/previews_infobar_tab_helper.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 CallDidFinishNavigation(); 93 CallDidFinishNavigation();
94 94
95 InfoBarService* infobar_service = 95 InfoBarService* infobar_service =
96 InfoBarService::FromWebContents(web_contents()); 96 InfoBarService::FromWebContents(web_contents());
97 EXPECT_EQ(1U, infobar_service->infobar_count()); 97 EXPECT_EQ(1U, infobar_service->infobar_count());
98 EXPECT_TRUE(infobar_tab_helper->displayed_preview_infobar()); 98 EXPECT_TRUE(infobar_tab_helper->displayed_preview_infobar());
99 99
100 // Navigate to reset the displayed state. 100 // Navigate to reset the displayed state.
101 content::WebContentsTester::For(web_contents()) 101 content::WebContentsTester::For(web_contents())
102 ->NavigateAndCommit(GURL(kTestUrl)); 102 ->NavigateAndCommit(GURL(kTestUrl));
103
103 EXPECT_FALSE(infobar_tab_helper->displayed_preview_infobar()); 104 EXPECT_FALSE(infobar_tab_helper->displayed_preview_infobar());
104 } 105 }
OLDNEW
« no previous file with comments | « chrome/browser/android/offline_pages/offline_page_utils_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698