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

Side by Side Diff: ios/testing/earl_grey/disabled_test_macros.h

Issue 2608733002: Fix include/import in ios/testing and ios/chrome/test (Closed)
Patch Set: 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 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 #ifndef IOS_TESTING_EARL_GREY_DISABLED_TEST_MACROS_H_ 5 #ifndef IOS_TESTING_EARL_GREY_DISABLED_TEST_MACROS_H_
6 #define IOS_TESTING_EARL_GREY_DISABLED_TEST_MACROS_H_ 6 #define IOS_TESTING_EARL_GREY_DISABLED_TEST_MACROS_H_
7 7
8 #import <Foundation/Foundation.h>
9
8 // A macro that forces an Earl Grey test to pass. It should be used to disable 10 // A macro that forces an Earl Grey test to pass. It should be used to disable
9 // tests that fail due to a bug. This macro should be used when the 11 // tests that fail due to a bug. This macro should be used when the
10 // configuration for which the test should be disabled can only be determined 12 // configuration for which the test should be disabled can only be determined
11 // at runtime. Disabling at compile-time is always preferred. 13 // at runtime. Disabling at compile-time is always preferred.
12 // Example: 14 // Example:
13 // - (void)testFoo 15 // - (void)testFoo
14 // if (base::ios::IsRunningOnIOS10OrLater()) { 16 // if (base::ios::IsRunningOnIOS10OrLater()) {
15 // EARL_GREY_TEST_DISABLED(@"Disabled on iOS 10."); 17 // EARL_GREY_TEST_DISABLED(@"Disabled on iOS 10.");
16 // } 18 // }
17 #define EARL_GREY_TEST_DISABLED(message) \ 19 #define EARL_GREY_TEST_DISABLED(message) \
(...skipping 12 matching lines...) Expand all
30 // if (base::ios::IsRunningOnIOS10OrLater()) { 32 // if (base::ios::IsRunningOnIOS10OrLater()) {
31 // EARL_GREY_TEST_SKIPPED(@"Test not supported on iOS 10."); 33 // EARL_GREY_TEST_SKIPPED(@"Test not supported on iOS 10.");
32 // } 34 // }
33 #define EARL_GREY_TEST_SKIPPED(message) \ 35 #define EARL_GREY_TEST_SKIPPED(message) \
34 while (true) { \ 36 while (true) { \
35 NSLog(@"-- Earl Grey Test Skipped -- %@", message); \ 37 NSLog(@"-- Earl Grey Test Skipped -- %@", message); \
36 return; \ 38 return; \
37 } 39 }
38 40
39 #endif // IOS_TESTING_EARL_GREY_DISABLED_TEST_MACROS_H_ 41 #endif // IOS_TESTING_EARL_GREY_DISABLED_TEST_MACROS_H_
OLDNEW
« no previous file with comments | « ios/chrome/test/testing_application_context.mm ('k') | ios/testing/ocmock_complex_type_helper.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698