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

Side by Side Diff: content/public/test/test_renderer_host.h

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created a DRP PageLoadMetricsObserver Created 4 years, 9 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 (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 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 void SetContents(WebContents* contents); 234 void SetContents(WebContents* contents);
235 235
236 // Creates a new test-enabled WebContents. Ownership passes to the 236 // Creates a new test-enabled WebContents. Ownership passes to the
237 // caller. 237 // caller.
238 WebContents* CreateTestWebContents(); 238 WebContents* CreateTestWebContents();
239 239
240 // Cover for |contents()->NavigateAndCommit(url)|. See 240 // Cover for |contents()->NavigateAndCommit(url)|. See
241 // WebContentsTester::NavigateAndCommit for details. 241 // WebContentsTester::NavigateAndCommit for details.
242 void NavigateAndCommit(const GURL& url); 242 void NavigateAndCommit(const GURL& url);
243 243
244 void SetSimulateUsedDataReductionProxy(bool enabled);
245
244 // Simulates a reload of the current page. 246 // Simulates a reload of the current page.
245 void Reload(); 247 void Reload();
246 void FailedReload(); 248 void FailedReload();
247 249
248 protected: 250 protected:
249 // testing::Test 251 // testing::Test
250 void SetUp() override; 252 void SetUp() override;
251 void TearDown() override; 253 void TearDown() override;
252 254
253 // Derived classes should override this method to use a custom BrowserContext. 255 // Derived classes should override this method to use a custom BrowserContext.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; 290 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_;
289 #endif 291 #endif
290 RenderViewHostTestEnabler rvh_test_enabler_; 292 RenderViewHostTestEnabler rvh_test_enabler_;
291 293
292 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 294 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
293 }; 295 };
294 296
295 } // namespace content 297 } // namespace content
296 298
297 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 299 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698