Skip to content

Commit

Permalink
Remove redundant test in test_file_exemptions.textproto
Browse files Browse the repository at this point in the history
More cleanup for eventloggingconfigurationmodule
  • Loading branch information
XichengSpencer committed Oct 29, 2024
1 parent 74eded5 commit c800a57
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ import org.oppia.android.util.caching.AssetModule
import org.oppia.android.util.caching.testing.CachingTestModule
import org.oppia.android.util.gcsresource.GcsResourceModule
import org.oppia.android.util.locale.LocaleProdModule
import org.oppia.android.util.logging.EventLoggingConfigurationModule
import org.oppia.android.util.logging.LoggerModule
import org.oppia.android.util.logging.SyncStatusModule
import org.oppia.android.util.logging.firebase.FirebaseLogUploaderModule
Expand Down Expand Up @@ -167,12 +166,12 @@ class TextInputLayoutBindingAdaptersTest {

private fun launchActivity():
ActivityScenario<TextInputLayoutBindingAdaptersTestActivity>? {
val scenario = ActivityScenario.launch<TextInputLayoutBindingAdaptersTestActivity>(
TextInputLayoutBindingAdaptersTestActivity.createIntent(context)
)
testCoroutineDispatchers.runCurrent()
return scenario
}
val scenario = ActivityScenario.launch<TextInputLayoutBindingAdaptersTestActivity>(
TextInputLayoutBindingAdaptersTestActivity.createIntent(context)
)
testCoroutineDispatchers.runCurrent()
return scenario
}

private fun setUpTestApplicationComponent() {
ApplicationProvider.getApplicationContext<TestApplication>().inject(this)
Expand Down Expand Up @@ -205,7 +204,7 @@ class TextInputLayoutBindingAdaptersTest {
MathEquationInputModule::class, SplitScreenInteractionModule::class,
LoggingIdentifierModule::class, ApplicationLifecycleModule::class,
SyncStatusModule::class, MetricLogSchedulerModule::class, TestingBuildFlavorModule::class,
EventLoggingConfigurationModule::class, ActivityRouterModule::class,
ActivityRouterModule::class,
CpuPerformanceSnapshotterModule::class, ExplorationProgressModule::class,
TestAuthenticationModule::class
]
Expand Down
4 changes: 0 additions & 4 deletions scripts/assets/test_file_exemptions.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -4354,10 +4354,6 @@ test_file_exemption {
exempted_file_path: "utility/src/main/java/org/oppia/android/util/logging/ConsoleLoggerInjectorProvider.kt"
test_file_not_required: true
}
test_file_exemption {
exempted_file_path: "utility/src/main/java/org/oppia/android/util/logging/EventTypeToHumanReadableNameConverter.kt"
test_file_not_required: true
}
test_file_exemption {
exempted_file_path: "utility/src/main/java/org/oppia/android/util/logging/ExceptionLogger.kt"
test_file_not_required: true
Expand Down
11 changes: 11 additions & 0 deletions utility/src/main/java/org/oppia/android/util/logging/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ kt_android_library(
visibility = ["//:oppia_api_visibility"],
)

kt_android_library(
name = "event_type_to_human_readable_name_converter",
srcs = [
"EventTypeToHumanReadableNameConverter.kt",
],
deps = [
"//model/src/main/proto:event_logger_java_proto_lite",
"//third_party:javax_inject_javax_inject",
],
)

kt_android_library(
name = "prod_module",
srcs = [
Expand Down

0 comments on commit c800a57

Please sign in to comment.