OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ios/chrome/test/earl_grey/chrome_util.h" | 5 #include "ios/chrome/test/earl_grey/chrome_util.h" |
6 | 6 |
7 #import <EarlGrey/EarlGrey.h> | 7 #import <EarlGrey/EarlGrey.h> |
8 | 8 |
9 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h" | 9 #import "ios/chrome/browser/ui/toolbar/toolbar_controller.h" |
10 #import "ios/chrome/test/app/chrome_test_util.h" | 10 #import "ios/chrome/test/app/chrome_test_util.h" |
11 #import "ios/testing/wait_util.h" | 11 #import "ios/testing/wait_util.h" |
12 #import "ios/web/public/test/earl_grey/web_view_matchers.h" | 12 #import "ios/web/public/test/earl_grey/web_view_matchers.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 const NSTimeInterval kWaitForToolbarAnimationTimeout = 1.0; | 15 const NSTimeInterval kWaitForToolbarAnimationTimeout = 1.0; |
(...skipping 27 matching lines...) Expand all Loading... |
43 assertWithMatcher:grey_notNil() | 43 assertWithMatcher:grey_notNil() |
44 error:&error]; | 44 error:&error]; |
45 return error == nil; | 45 return error == nil; |
46 }; | 46 }; |
47 GREYAssert(testing::WaitUntilConditionOrTimeout( | 47 GREYAssert(testing::WaitUntilConditionOrTimeout( |
48 kWaitForToolbarAnimationTimeout, condition), | 48 kWaitForToolbarAnimationTimeout, condition), |
49 @"The toolbar is not visible."); | 49 @"The toolbar is not visible."); |
50 } | 50 } |
51 | 51 |
52 } // namespace chrome_test_util | 52 } // namespace chrome_test_util |
OLD | NEW |