REGISTER_TEST_CASE(View);
// When waiting for view changed events, wait no longer than this.
+#if !defined(THREAD_SANITIZER)
static int kViewChangeTimeoutSec = 5;
+#else
+// ThreadSanitizer may slow the interaction down significantly.
+static int kViewChangeTimeoutSec = 30;
+#endif
TestView::TestView(TestingInstance* instance)
: TestCase(instance),