| 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 #import <UIKit/UIKit.h> | 5 #import <UIKit/UIKit.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #import "base/test/ios/wait_util.h" | 10 #import "base/test/ios/wait_util.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "components/toolbar/test_toolbar_model.h" | 12 #include "components/toolbar/test_toolbar_model.h" |
| 13 #include "ios/chrome/browser/autocomplete/autocomplete_classifier_factory.h" | 13 #include "ios/chrome/browser/autocomplete/autocomplete_classifier_factory.h" |
| 14 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" | 14 #include "ios/chrome/browser/browser_state/test_chrome_browser_state.h" |
| 15 #include "ios/chrome/browser/search_engines/template_url_service_factory.h" | 15 #include "ios/chrome/browser/search_engines/template_url_service_factory.h" |
| 16 #import "ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.h" | 16 #import "ios/chrome/browser/ui/omnibox/omnibox_text_field_ios.h" |
| 17 #include "ios/chrome/browser/ui/toolbar/toolbar_model_delegate_ios.h" | 17 #include "ios/chrome/browser/ui/toolbar/toolbar_model_delegate_ios.h" |
| 18 #include "ios/chrome/browser/ui/toolbar/toolbar_model_impl_ios.h" | 18 #include "ios/chrome/browser/ui/toolbar/toolbar_model_impl_ios.h" |
| 19 #import "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h" | 19 #import "ios/chrome/browser/ui/toolbar/web_toolbar_controller.h" |
| 20 #include "ios/chrome/browser/web_state_list/fake_web_state_list_delegate.h" | |
| 21 #include "ios/chrome/browser/web_state_list/web_state_list.h" | |
| 22 #include "ios/chrome/test/base/perf_test_ios.h" | 20 #include "ios/chrome/test/base/perf_test_ios.h" |
| 21 #include "ios/shared/chrome/browser/tabs/fake_web_state_list_delegate.h" |
| 22 #include "ios/shared/chrome/browser/tabs/web_state_list.h" |
| 23 #include "ios/web/public/test/fakes/test_web_state.h" | 23 #include "ios/web/public/test/fakes/test_web_state.h" |
| 24 #include "testing/platform_test.h" | 24 #include "testing/platform_test.h" |
| 25 #import "third_party/ocmock/OCMock/OCMock.h" | 25 #import "third_party/ocmock/OCMock/OCMock.h" |
| 26 #import "ui/base/test/ios/keyboard_appearance_listener.h" | 26 #import "ui/base/test/ios/keyboard_appearance_listener.h" |
| 27 | 27 |
| 28 #if !defined(__has_feature) || !__has_feature(objc_arc) | 28 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 29 #error "This file requires ARC support." | 29 #error "This file requires ARC support." |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 } | 269 } |
| 270 NSLog(@"%2d: %@", index, logMessage); | 270 NSLog(@"%2d: %@", index, logMessage); |
| 271 return elapsed; | 271 return elapsed; |
| 272 }, | 272 }, |
| 273 ^() { | 273 ^() { |
| 274 [textField setText:@""]; | 274 [textField setText:@""]; |
| 275 DisableKeyboard(textField); | 275 DisableKeyboard(textField); |
| 276 }); | 276 }); |
| 277 } | 277 } |
| 278 } | 278 } |
| OLD | NEW |