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

Side by Side Diff: ios/chrome/browser/web/early_page_script_perftest.mm

Issue 2614443004: [ios] Moved all web mocks to ios/web/public/test/fakes. (Closed)
Patch Set: Moved test_redirect_observer back Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "base/mac/bundle_locations.h" 5 #include "base/mac/bundle_locations.h"
6 #include "base/mac/scoped_nsobject.h" 6 #include "base/mac/scoped_nsobject.h"
7 #include "base/timer/elapsed_timer.h" 7 #include "base/timer/elapsed_timer.h"
8 #include "ios/chrome/test/base/perf_test_ios.h" 8 #include "ios/chrome/test/base/perf_test_ios.h"
9 #include "ios/web/public/test/fakes/test_browser_state.h"
9 #import "ios/web/public/test/js_test_util.h" 10 #import "ios/web/public/test/js_test_util.h"
10 #include "ios/web/public/test/test_browser_state.h"
11 #import "ios/web/public/web_view_creation_util.h" 11 #import "ios/web/public/web_view_creation_util.h"
12 #import "ios/web/web_state/js/page_script_util.h" 12 #import "ios/web/web_state/js/page_script_util.h"
13 13
14 #import <Foundation/Foundation.h> 14 #import <Foundation/Foundation.h>
15 #import <WebKit/WebKit.h> 15 #import <WebKit/WebKit.h>
16 16
17 namespace { 17 namespace {
18 18
19 // Class for testing early page script injection into WKWebView. 19 // Class for testing early page script injection into WKWebView.
20 // TODO(crbug.com/583218): improve this test to use WKUserScript injections. 20 // TODO(crbug.com/583218): improve this test to use WKUserScript injections.
(...skipping 30 matching lines...) Expand all
51 RepeatTimedRuns("Bare web view injection", 51 RepeatTimedRuns("Bare web view injection",
52 ^base::TimeDelta(int) { 52 ^base::TimeDelta(int) {
53 base::ElapsedTimer timer; 53 base::ElapsedTimer timer;
54 InjectEarlyScript(); 54 InjectEarlyScript();
55 return timer.Elapsed(); 55 return timer.Elapsed();
56 }, 56 },
57 nil); 57 nil);
58 } 58 }
59 59
60 } // namespace 60 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698