| OLD | NEW |
| 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 IOS_CHROME_TEST_BASE_PERF_TEST_IOS_H_ | 5 #ifndef IOS_CHROME_TEST_BASE_PERF_TEST_IOS_H_ |
| 6 #define IOS_CHROME_TEST_BASE_PERF_TEST_IOS_H_ | 6 #define IOS_CHROME_TEST_BASE_PERF_TEST_IOS_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #include "base/ios/block_types.h" | 10 #import "base/ios/block_types.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #import "ios/chrome/test/block_cleanup_test.h" | 12 #import "ios/chrome/test/block_cleanup_test.h" |
| 13 #include "ios/web/public/test/scoped_testing_web_client.h" | 13 #include "ios/web/public/test/scoped_testing_web_client.h" |
| 14 #include "ios/web/public/test/test_web_thread_bundle.h" | 14 #include "ios/web/public/test/test_web_thread_bundle.h" |
| 15 | 15 |
| 16 typedef base::TimeDelta (^TimedActionBlock)(int index); | 16 typedef base::TimeDelta (^TimedActionBlock)(int index); |
| 17 | 17 |
| 18 // Base class for PerfTest providing some common functions that are | 18 // Base class for PerfTest providing some common functions that are |
| 19 // generally useful. | 19 // generally useful. |
| 20 class PerfTest : public BlockCleanupTest { | 20 class PerfTest : public BlockCleanupTest { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 bool verbose_; | 69 bool verbose_; |
| 70 // Sets number of times to repeat a test when ran with RepeatTimedRuns. | 70 // Sets number of times to repeat a test when ran with RepeatTimedRuns. |
| 71 int repeatCount_; | 71 int repeatCount_; |
| 72 // The threads used for testing. | 72 // The threads used for testing. |
| 73 web::TestWebThreadBundle thread_bundle_; | 73 web::TestWebThreadBundle thread_bundle_; |
| 74 // The WebClient for testing purposes. | 74 // The WebClient for testing purposes. |
| 75 web::ScopedTestingWebClient web_client_; | 75 web::ScopedTestingWebClient web_client_; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 #endif // IOS_CHROME_TEST_BASE_PERF_TEST_IOS_H_ | 78 #endif // IOS_CHROME_TEST_BASE_PERF_TEST_IOS_H_ |
| OLD | NEW |