summaryrefslogtreecommitdiffstats
path: root/tests/unit/screen_ui_test.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-06-06 16:38:54 +0200
committerTao Bao <tbao@google.com>2018-06-06 16:49:47 +0200
commit94371fd012c661859326b73246b781ae872e0871 (patch)
treead3b819f9fbf7d911052d1ca507e9cd4cab34815 /tests/unit/screen_ui_test.cpp
parentMerge "tests: Specify the death test style to avoid flakiness." (diff)
downloadandroid_bootable_recovery-94371fd012c661859326b73246b781ae872e0871.tar
android_bootable_recovery-94371fd012c661859326b73246b781ae872e0871.tar.gz
android_bootable_recovery-94371fd012c661859326b73246b781ae872e0871.tar.bz2
android_bootable_recovery-94371fd012c661859326b73246b781ae872e0871.tar.lz
android_bootable_recovery-94371fd012c661859326b73246b781ae872e0871.tar.xz
android_bootable_recovery-94371fd012c661859326b73246b781ae872e0871.tar.zst
android_bootable_recovery-94371fd012c661859326b73246b781ae872e0871.zip
Diffstat (limited to 'tests/unit/screen_ui_test.cpp')
-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());