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

Side by Side Diff: ios/chrome/browser/ui/ntp/new_tab_page_perftest.mm

Issue 2675253003: [ObjC ARC] Converts ios/chrome/browser/ui/ntp:perf_tests to ARC. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « ios/chrome/browser/ui/ntp/BUILD.gn ('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 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
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/ntp/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698