Commit 6e2a83e0 authored by Eugene But's avatar Eugene But Committed by Commit Bot

Remove CHROME_EG_ASSERT_NO_ERROR macro definition as unused.

CHROME_EG_ASSERT_NO_ERROR is unnecessary anymore, because helpers can
assert with correct file name and line number.

Bug: 963613
Change-Id: Ied9d4595c04f81a70e93cd32da24449a74618b37
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1672707
Auto-Submit: Eugene But <eugenebut@chromium.org>
Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Commit-Queue: Eugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#672190}
parent b3b3bbc7
......@@ -22,7 +22,6 @@
#import "ios/chrome/browser/autofill/form_suggestion_label.h"
#import "ios/chrome/test/app/chrome_test_util.h"
#import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
#import "ios/chrome/test/earl_grey/chrome_error_util.h"
#import "ios/chrome/test/earl_grey/chrome_test_case.h"
#include "ios/web/public/js_messaging/web_frame_util.h"
#import "ios/web/public/js_messaging/web_frames_manager.h"
......
......@@ -35,7 +35,6 @@
#import "ios/chrome/test/earl_grey/chrome_actions.h"
#import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
#import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h"
#import "ios/chrome/test/earl_grey/chrome_error_util.h"
#import "ios/chrome/test/earl_grey/chrome_matchers.h"
#import "ios/chrome/test/earl_grey/chrome_test_case.h"
#import "ios/third_party/material_components_ios/src/components/Snackbar/src/MaterialSnackbar.h"
......
......@@ -9,7 +9,6 @@
#import "ios/chrome/browser/ui/authentication/signin_earlgrey_utils.h"
#include "ios/chrome/grit/ios_strings.h"
#import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h"
#import "ios/chrome/test/earl_grey/chrome_error_util.h"
#import "ios/chrome/test/earl_grey/chrome_matchers.h"
#import "ios/chrome/test/earl_grey/chrome_test_case.h"
#
......
......@@ -211,7 +211,6 @@ source_set("test_support") {
"chrome_earl_grey_app_interface.mm",
"chrome_earl_grey_ui.h",
"chrome_earl_grey_ui.mm",
"chrome_error_util.h",
"chrome_matchers.h",
"chrome_matchers.mm",
"chrome_matchers_app_interface.h",
......@@ -389,7 +388,6 @@ source_set("eg_test_support+eg2") {
"chrome_earl_grey_ui.mm",
"chrome_egtest_bundle_main.h",
"chrome_egtest_bundle_main.mm",
"chrome_error_util.h",
"chrome_matchers.h",
"chrome_matchers.mm",
"chrome_matchers_app_interface.h",
......
......@@ -11,7 +11,6 @@
#include "base/strings/sys_string_conversions.h"
#import "base/test/ios/wait_util.h"
#import "ios/chrome/test/earl_grey/chrome_earl_grey_app_interface.h"
#import "ios/chrome/test/earl_grey/chrome_error_util.h"
#import "ios/testing/earl_grey/earl_grey_test.h"
#import "ios/testing/nserror_util.h"
#include "ios/web/public/test/element_selector.h"
......
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_ERROR_UTIL_H_
#define IOS_CHROME_TEST_EARL_GREY_CHROME_ERROR_UTIL_H_
// Wraps an expression that returns an NSError*, asserting if an error is
// returned. Used in EG test code to assert if app helpers fail. For example:
// CHROME_EG_ASSERT_NO_ERROR(helperReturningNSError());
// CHROME_EG_ASSERT_NO_ERROR([ChromeEarlGrey helperReturningNSError]);
#define CHROME_EG_ASSERT_NO_ERROR(expression) \
{ \
NSError* error = expression; \
GREYAssert(error == nil || [error isKindOfClass:[NSError class]], \
@"Expression did not return an object of type NSError"); \
GREYAssertNil(error, error.localizedDescription); \
}
#endif // IOS_CHROME_TEST_EARL_GREY_CHROME_ERROR_UTIL_H_
......@@ -11,7 +11,6 @@
#include "base/command_line.h"
#include "base/strings/sys_string_conversions.h"
#import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
#import "ios/chrome/test/earl_grey/chrome_error_util.h"
#import "ios/chrome/test/earl_grey/chrome_test_case_app_interface.h"
#import "ios/testing/earl_grey/coverage_utils.h"
#import "ios/testing/earl_grey/earl_grey_test.h"
......
......@@ -9,7 +9,6 @@
#import "ios/chrome/test/earl_grey/chrome_actions.h"
#import "ios/chrome/test/earl_grey/chrome_earl_grey.h"
#import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h"
#import "ios/chrome/test/earl_grey/chrome_error_util.h"
#import "ios/chrome/test/earl_grey/chrome_matchers.h"
#import "ios/chrome/test/earl_grey/chrome_test_case.h"
#import "ios/chrome/test/earl_grey2/chrome_earl_grey_edo.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment