summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-06-06 20:07:02 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-06-06 20:07:02 +0200
commitb4aad37e2102ef1685f9cb19d842d7c8293e3644 (patch)
tree0d2df0d2ecd10ea6824557b4a1d62bdac1c110eb /tests
parentMerge "tests: Specify the death test style to avoid flakiness." am: 878d5a77f0 (diff)
parentMerge "ui: join only if joinable." (diff)
downloadandroid_bootable_recovery-b4aad37e2102ef1685f9cb19d842d7c8293e3644.tar
android_bootable_recovery-b4aad37e2102ef1685f9cb19d842d7c8293e3644.tar.gz
android_bootable_recovery-b4aad37e2102ef1685f9cb19d842d7c8293e3644.tar.bz2
android_bootable_recovery-b4aad37e2102ef1685f9cb19d842d7c8293e3644.tar.lz
android_bootable_recovery-b4aad37e2102ef1685f9cb19d842d7c8293e3644.tar.xz
android_bootable_recovery-b4aad37e2102ef1685f9cb19d842d7c8293e3644.tar.zst
android_bootable_recovery-b4aad37e2102ef1685f9cb19d842d7c8293e3644.zip
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/screen_ui_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/screen_ui_test.cpp b/tests/unit/screen_ui_test.cpp
index 2179b729f..a3dd2add9 100644
--- a/tests/unit/screen_ui_test.cpp
+++ b/tests/unit/screen_ui_test.cpp
@@ -293,6 +293,11 @@ TEST_F(ScreenRecoveryUITest, Init) {
ASSERT_FALSE(ui_->WasTextEverVisible());
}
+TEST_F(ScreenRecoveryUITest, dtor_NotCallingInit) {
+ ui_.reset();
+ ASSERT_FALSE(ui_);
+}
+
TEST_F(ScreenRecoveryUITest, ShowText) {
ASSERT_TRUE(ui_->Init(kTestLocale));
ASSERT_FALSE(ui_->IsTextVisible());