| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #import "base/test/ios/wait_util.h" | 5 #import "base/test/ios/wait_util.h" |
| 6 #include "ios/chrome/browser/sessions/ios_chrome_tab_restore_service_factory.h" | 6 #include "ios/chrome/browser/sessions/ios_chrome_tab_restore_service_factory.h" |
| 7 #import "ios/chrome/browser/tabs/tab_model.h" | 7 #import "ios/chrome/browser/tabs/tab_model.h" |
| 8 #include "ios/chrome/browser/test/perf_test_with_bvc_ios.h" | 8 #include "ios/chrome/browser/test/perf_test_with_bvc_ios.h" |
| 9 #import "ios/chrome/browser/ui/browser_view_controller.h" | 9 #import "ios/chrome/browser/ui/browser_view_controller.h" |
| 10 #import "ios/chrome/browser/ui/browser_view_controller_dependency_factory.h" | 10 #import "ios/chrome/browser/ui/browser_view_controller_dependency_factory.h" |
| 11 | 11 |
| 12 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 13 #error "This file requires ARC support." |
| 14 #endif |
| 15 |
| 12 namespace { | 16 namespace { |
| 13 | 17 |
| 14 const NSTimeInterval kMaxUICatchupDelay = 2.0; // seconds | 18 const NSTimeInterval kMaxUICatchupDelay = 2.0; // seconds |
| 15 | 19 |
| 16 class NewTabPagePerfTest : public PerfTestWithBVC { | 20 class NewTabPagePerfTest : public PerfTestWithBVC { |
| 17 public: | 21 public: |
| 18 NewTabPagePerfTest() | 22 NewTabPagePerfTest() |
| 19 : PerfTestWithBVC("NTP - Create", | 23 : PerfTestWithBVC("NTP - Create", |
| 20 "First Tab", | 24 "First Tab", |
| 21 "", | 25 "", |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 RepeatTimedRuns("NTP Hammer Create", | 68 RepeatTimedRuns("NTP Hammer Create", |
| 65 ^(int index) { | 69 ^(int index) { |
| 66 return TimedNewTab(); | 70 return TimedNewTab(); |
| 67 }, | 71 }, |
| 68 nil); | 72 nil); |
| 69 // Allows the run loops to run before teardown. | 73 // Allows the run loops to run before teardown. |
| 70 SettleUI(); | 74 SettleUI(); |
| 71 } | 75 } |
| 72 | 76 |
| 73 } // anonymous namespace | 77 } // anonymous namespace |
| OLD | NEW |