blob: 59b71b025ab0f294d937ed34f88077ed8dbffa73 [file] [log] [blame]
load("//tools/base/bazel:bazel.bzl", "iml_module")
load("//tools/base/bazel:jvm_import.bzl", "jvm_import")
load("//tools/base/bazel:kotlin.bzl", "kotlin_test")
# managed by go/iml_to_build
iml_module(
name = "intellij.android.profilersAndroid",
srcs = ["src"],
iml_files = ["intellij.android.profilersAndroid.iml"],
resources = ["resources"],
split_test_targets = {
"WindowsNameDemanglerTest": {
"test_filter": "com.android.tools.idea.profilers.perfetto.traceprocessor.WindowsNameDemanglerTest",
},
"other": {
"tags": ["noci:studio-win"],
},
},
test_class = "com.android.tools.idea.profilers.ProfilersAndroidTestSuite",
test_data = [
"//prebuilts/tools:lldb",
"//prebuilts/tools/common/trace-processor-daemon",
"//tools/adt/idea/profilers:test_data",
],
# do not sort: must match IML order
test_deps = [
"//tools/adt/idea/.idea/libraries:junit4",
"//tools/adt/idea/.idea/libraries:kotlin-test",
"//tools/adt/idea/.idea/libraries:mockito",
"//tools/adt/idea/.idea/libraries:truth",
"//tools/base/testutils:studio.android.sdktools.testutils",
"//tools/adt/idea/adt-testutils:intellij.android.adt.testutils",
"//tools/base/perflib:studio.android.sdktools.perflib",
"//tools/base/perf-logger:studio.perf-logger",
"//tools/adt/idea/.idea/libraries:jetbrains.kotlinx.coroutines.test",
"//tools/adt/idea/.idea/libraries:mockito-kotlin",
],
test_srcs = ["testSrc"],
test_timeout = "long",
visibility = ["//visibility:public"],
# do not sort: must match IML order
deps = [
"@intellij//:intellij-sdk",
"@intellij//:com.intellij.java",
"//tools/adt/idea/profilers-ui:intellij.android.profilers.ui",
"//tools/adt/idea/profilers:intellij.android.profilers",
"//tools/adt/idea/adt-ui:intellij.android.adt.ui",
"//tools/adt/idea/adt-ui-model:intellij.android.adt.ui.model",
"//tools/adt/idea/transport-database:intellij.android.transportDatabase",
"//tools/adt/idea/android:intellij.android.core",
"//tools/adt/idea/android-common:intellij.android.common",
"//tools/base/ddmlib:studio.android.sdktools.ddmlib",
"//tools/analytics-library/shared:analytics-shared",
"//tools/analytics-library/tracker:analytics-tracker",
"//tools/base/flags:studio.android.sdktools.flags",
"//tools/adt/idea/artwork:intellij.android.artwork",
"//tools/adt/idea/native-symbolizer",
"//tools/adt/idea/.idea/libraries:studio-analytics-proto",
"//tools/adt/idea/deploy:intellij.android.deploy",
"//tools/adt/idea/android-transport:intellij.android.transport",
"//tools/adt/idea/.idea/libraries:studio-grpc",
"//tools/adt/idea/.idea/libraries:studio-proto",
"//tools/adt/idea/.idea/libraries:perfetto-proto",
"//tools/adt/idea/logcat:intellij.android.logcat",
"//tools/adt/idea/profilers-android:traceprocessor-proto",
"//tools/adt/idea/.idea/libraries:transport-proto",
"//tools/adt/idea/inspectors-common/api-ide:intellij.android.inspectors-common.api-ide",
"//tools/adt/idea/inspectors-common/ui:intellij.android.inspectors-common.ui",
"//tools/adt/idea/inspectors-common/api:intellij.android.inspectors-common.api",
"//tools/adt/idea/project-system:intellij.android.projectSystem",
"//tools/adt/idea/render-resources:intellij.android.render-resources",
"//tools/adt/idea/codenavigation",
"//prebuilts/tools/common/m2:trace-perfetto-library",
"//tools/adt/idea/app-inspection/ide:app-inspection.ide",
"//tools/adt/idea/execution/common:intellij.android.execution.common",
"//tools/adt/idea/analytics",
],
)
kotlin_test(
name = "intellij.android.profilersAndroid.performance",
timeout = "long",
srcs = [
"testSrc/com/android/tools/idea/profilers/PerformanceTestSuite.kt",
"testSrc/com/android/tools/idea/profilers/performance/CpuProfilerAtraceCaptureTest.kt",
"testSrc/com/android/tools/idea/profilers/performance/CpuProfilerEmptyCaptureTest.kt",
"testSrc/com/android/tools/idea/profilers/performance/CpuProfilerMemoryLoadTestBase.kt",
"testSrc/com/android/tools/idea/profilers/performance/CpuProfilerPerfettoCaptureTest.kt",
"testSrc/com/android/tools/idea/profilers/performance/MemoryClassifierViewFindSuperSetNodeTest.kt",
"testSrc/com/android/tools/idea/profilers/performance/MemoryProfilerHeapDumpTest.kt",
"testSrc/com/android/tools/idea/profilers/performance/TraceProcessorDaemonBenchmarkTest.kt",
],
data = [
"//prebuilts/tools/common/trace-processor-daemon",
"//tools/adt/idea/profilers:test_data",
],
jvm_flags = ["-Dtest.suite.jar=intellij.android.profilersAndroid.performance.jar"],
test_class = "com.android.tools.idea.profilers.PerformanceTestSuite",
deps = [
":intellij.android.profilersAndroid_testlib",
"//tools/adt/idea/.idea/libraries:junit4",
"//tools/adt/idea/.idea/libraries:kotlin-test",
"//tools/adt/idea/.idea/libraries:studio-grpc",
"//tools/adt/idea/.idea/libraries:studio-proto",
"//tools/adt/idea/.idea/libraries:transport-proto",
"//tools/adt/idea/.idea/libraries:truth",
"//tools/adt/idea/adt-testutils:intellij.android.adt.testutils_testlib",
"//tools/adt/idea/adt-ui:intellij.android.adt.ui",
"//tools/adt/idea/adt-ui-model:intellij.android.adt.ui.model",
"//tools/adt/idea/adt-ui-model:intellij.android.adt.ui.model_testlib",
"//tools/adt/idea/android-transport:intellij.android.transport",
"//tools/adt/idea/android-transport:intellij.android.transport_testlib",
"//tools/adt/idea/profilers:intellij.android.profilers",
"//tools/adt/idea/profilers:intellij.android.profilers_testlib",
"//tools/adt/idea/profilers-android:intellij.android.profilersAndroid",
"//tools/adt/idea/profilers-android:traceprocessor-proto",
"//tools/adt/idea/profilers-ui:intellij.android.profilers.ui",
"//tools/adt/idea/profilers-ui:intellij.android.profilers.ui_testlib",
"//tools/base/common:studio.android.sdktools.common",
"//tools/base/layoutlib-api:tools.layoutlib-api",
"//tools/base/perf-logger:studio.perf-logger_testlib",
"//tools/base/perflib:studio.android.sdktools.perflib",
"//tools/base/testutils:studio.android.sdktools.testutils_testlib",
"@intellij//:intellij-sdk",
],
)
kotlin_test(
name = "intellij.android.profilersAndroid.performance.captureDetails",
timeout = "long",
srcs = [
"testSrc/com/android/tools/idea/profilers/PerformanceTestSuite.kt",
"testSrc/com/android/tools/idea/profilers/performance/CaptureDetailsTest.kt",
],
data = [
"//prebuilts/tools/common/trace-processor-daemon",
"//tools/adt/idea/profilers:test_data",
],
jvm_flags = ["-Dtest.suite.jar=intellij.android.profilersAndroid.performance.captureDetails.jar"],
lint_baseline = "lint_baseline_captureDetails.xml",
test_class = "com.android.tools.idea.profilers.PerformanceTestSuite",
deps = [
":intellij.android.profilersAndroid_testlib",
"//tools/adt/idea/.idea/libraries:junit4",
"//tools/adt/idea/.idea/libraries:studio-grpc",
"//tools/adt/idea/.idea/libraries:transport-proto",
"//tools/adt/idea/.idea/libraries:truth",
"//tools/adt/idea/adt-testutils:intellij.android.adt.testutils_testlib",
"//tools/adt/idea/adt-ui:intellij.android.adt.ui",
"//tools/adt/idea/adt-ui-model:intellij.android.adt.ui.model",
"//tools/adt/idea/adt-ui-model:intellij.android.adt.ui.model_testlib",
"//tools/adt/idea/android-transport:intellij.android.transport",
"//tools/adt/idea/android-transport:intellij.android.transport_testlib",
"//tools/adt/idea/profilers:intellij.android.profilers",
"//tools/adt/idea/profilers:intellij.android.profilers_testlib",
"//tools/adt/idea/profilers-android:intellij.android.profilersAndroid",
"//tools/adt/idea/profilers-ui:intellij.android.profilers.ui",
"//tools/adt/idea/profilers-ui:intellij.android.profilers.ui_testlib",
"//tools/base/perf-logger:studio.perf-logger",
"//tools/base/perflib:studio.android.sdktools.perflib",
"//tools/base/testutils:studio.android.sdktools.testutils_testlib",
"@intellij//:intellij-sdk",
],
)
# managed by go/iml_to_build
jvm_import(
name = "traceprocessor-proto",
jars = ["//tools/base/profiler/native/trace_processor_daemon:traceprocessor_protos.jar"],
visibility = ["//visibility:public"],
)