Commit 1fd8cf57 authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

[iOS] Convert NTPTiles to EG2

Bug: 987646
Change-Id: I5fd6d0828a2c22e613d97d34689f864c809d93a1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1871598
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708546}
parent 62798f34
......@@ -31,7 +31,28 @@ source_set("ntp_tiles") {
]
}
source_set("eg2_tests") {
defines = [ "CHROME_EARL_GREY_2" ]
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [
"ntp_tiles_egtest.mm",
]
deps = [
"//ios/chrome/test/earl_grey:eg_test_support+eg2",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/third_party/earl_grey2:test_lib",
"//ios/web/public/test/http_server:http_server",
"//net",
]
libs = [ "UIKit.framework" ]
}
source_set("eg_tests") {
defines = [ "CHROME_EARL_GREY_1" ]
testonly = true
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
......@@ -43,6 +64,7 @@ source_set("eg_tests") {
"//components/ntp_tiles:ntp_tiles",
"//ios/chrome/test/app:test_support",
"//ios/chrome/test/earl_grey:test_support",
"//ios/testing/earl_grey:earl_grey_support",
"//ios/web/public/test/http_server:http_server",
]
}
......@@ -2,13 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <EarlGrey/EarlGrey.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_earl_grey_ui.h"
#import "ios/chrome/test/earl_grey/chrome_matchers.h"
#import "ios/chrome/test/earl_grey/chrome_test_case.h"
#import "ios/testing/earl_grey/earl_grey_test.h"
#import "ios/web/public/test/http_server/html_response_provider.h"
#import "ios/web/public/test/http_server/html_response_provider_impl.h"
#import "ios/web/public/test/http_server/http_server.h"
......
......@@ -11,6 +11,7 @@ group("all_tests") {
deps = [
":ios_chrome_autofill_automation_eg2tests_module",
":ios_chrome_eg2tests",
":ios_chrome_integration_eg2tests_module",
":ios_chrome_smoke_eg2tests_module",
":ios_chrome_ui_eg2tests_module",
":ios_chrome_web_eg2tests_module",
......@@ -28,6 +29,14 @@ chrome_ios_eg2_test("ios_chrome_autofill_automation_eg2tests_module") {
]
}
chrome_ios_eg2_test("ios_chrome_integration_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
deps = [
"//ios/chrome/browser/ntp_tiles:eg2_tests",
]
}
chrome_ios_eg2_test("ios_chrome_smoke_eg2tests_module") {
xcode_test_application_name = "ios_chrome_eg2tests"
......
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