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

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

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 years, 12 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 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/memory/ptr_util.h"
10 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
11 #include "base/threading/thread_task_runner_handle.h" 12 #include "base/threading/thread_task_runner_handle.h"
12 #include "chrome/browser/infobars/infobar_service.h" 13 #include "chrome/browser/infobars/infobar_service.h"
13 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" 14 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
14 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h" 15 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h"
15 #include "chrome/browser/previews/previews_infobar_tab_helper.h" 16 #include "chrome/browser/previews/previews_infobar_tab_helper.h"
16 #include "chrome/common/features.h" 17 #include "chrome/common/features.h"
17 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 18 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h" 19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_test _utils.h"
19 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade rs.h" 20 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_heade rs.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 EXPECT_EQ(1U, infobar_service->infobar_count()); 142 EXPECT_EQ(1U, infobar_service->infobar_count());
142 EXPECT_TRUE(infobar_tab_helper->displayed_preview_infobar()); 143 EXPECT_TRUE(infobar_tab_helper->displayed_preview_infobar());
143 144
144 // Navigate to reset the displayed state. 145 // Navigate to reset the displayed state.
145 content::WebContentsTester::For(web_contents()) 146 content::WebContentsTester::For(web_contents())
146 ->NavigateAndCommit(GURL(kTestUrl)); 147 ->NavigateAndCommit(GURL(kTestUrl));
147 148
148 EXPECT_FALSE(infobar_tab_helper->displayed_preview_infobar()); 149 EXPECT_FALSE(infobar_tab_helper->displayed_preview_infobar());
149 } 150 }
150 #endif // BUILDFLAG(ANDROID_JAVA_UI) 151 #endif // BUILDFLAG(ANDROID_JAVA_UI)
OLDNEW
« no previous file with comments | « chrome/browser/previews/previews_infobar_delegate_unittest.cc ('k') | chrome/browser/profiles/profile_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698