Lines Matching refs:lock_handler_
204 lock_handler_.reset(new TestLockHandler(user_email_));
206 screenlock_bridge->SetLockHandler(lock_handler_.get());
217 lock_handler_.reset();
230 scoped_ptr<TestLockHandler> lock_handler_;
238 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
240 lock_handler_->GetAuthType(user_email_));
242 ASSERT_TRUE(lock_handler_->HasCustomIcon());
243 EXPECT_EQ(kUnlockedIconId, lock_handler_->GetCustomIconId());
244 EXPECT_TRUE(lock_handler_->CustomIconHasTooltip());
245 EXPECT_TRUE(lock_handler_->IsCustomIconTooltipAutoshown());
246 EXPECT_FALSE(lock_handler_->CustomIconHardlocksOnClick());
251 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
258 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
260 lock_handler_->GetAuthType(user_email_));
262 ASSERT_TRUE(lock_handler_->HasCustomIcon());
263 EXPECT_EQ(kUnlockedIconId, lock_handler_->GetCustomIconId());
264 EXPECT_TRUE(lock_handler_->CustomIconHasTooltip());
265 EXPECT_FALSE(lock_handler_->IsCustomIconTooltipAutoshown());
266 EXPECT_TRUE(lock_handler_->CustomIconHardlocksOnClick());
284 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
286 lock_handler_->GetAuthType(user_email_));
288 ASSERT_TRUE(lock_handler_->HasCustomIcon());
289 EXPECT_EQ(kSpinnerIconId, lock_handler_->GetCustomIconId());
290 EXPECT_FALSE(lock_handler_->CustomIconHasTooltip());
291 EXPECT_TRUE(lock_handler_->CustomIconHardlocksOnClick());
296 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
303 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
305 lock_handler_->GetAuthType(user_email_));
310 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
312 lock_handler_->GetAuthType(user_email_));
314 ASSERT_TRUE(lock_handler_->HasCustomIcon());
315 EXPECT_EQ(kHardlockedIconId, lock_handler_->GetCustomIconId());
316 EXPECT_TRUE(lock_handler_->CustomIconHasTooltip());
317 EXPECT_TRUE(lock_handler_->IsCustomIconTooltipAutoshown());
318 EXPECT_FALSE(lock_handler_->CustomIconHardlocksOnClick());
323 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
324 ASSERT_TRUE(lock_handler_->HasCustomIcon());
331 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
333 lock_handler_->GetAuthType(user_email_));
338 EXPECT_FALSE(lock_handler_->HasCustomIcon());
340 lock_handler_->GetAuthType(user_email_));
357 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount())
360 lock_handler_->GetAuthType(user_email_))
363 ASSERT_TRUE(lock_handler_->HasCustomIcon())
365 EXPECT_EQ(kLockedIconId, lock_handler_->GetCustomIconId())
367 EXPECT_TRUE(lock_handler_->CustomIconHasTooltip())
369 EXPECT_FALSE(lock_handler_->IsCustomIconTooltipAutoshown())
371 EXPECT_TRUE(lock_handler_->CustomIconHardlocksOnClick())
375 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount())
395 ASSERT_TRUE(lock_handler_->HasCustomIcon())
397 EXPECT_TRUE(lock_handler_->CustomIconHasTooltip())
399 EXPECT_TRUE(lock_handler_->IsCustomIconTooltipAutoshown())
404 lock_handler_.reset(new TestLockHandler(user_email_));
405 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
406 ScreenlockBridge::Get()->SetLockHandler(lock_handler_.get());
411 ASSERT_TRUE(lock_handler_->HasCustomIcon())
413 EXPECT_TRUE(lock_handler_->CustomIconHasTooltip())
415 EXPECT_FALSE(lock_handler_->IsCustomIconTooltipAutoshown())
424 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
426 lock_handler_->GetAuthType(user_email_));
428 ASSERT_TRUE(lock_handler_->HasCustomIcon());
429 ASSERT_FALSE(lock_handler_->IsCustomIconTooltipAutoshown());
433 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
435 lock_handler_->GetAuthType(user_email_));
437 ASSERT_TRUE(lock_handler_->HasCustomIcon());
438 ASSERT_TRUE(lock_handler_->IsCustomIconTooltipAutoshown());
446 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
448 lock_handler_->GetAuthType(user_email_));
450 lock_handler_->HasCustomIcon());
454 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
456 lock_handler_->GetAuthType(user_email_));
458 ASSERT_FALSE(lock_handler_->HasCustomIcon());
465 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
467 lock_handler_->GetAuthType(user_email_));
468 ASSERT_TRUE(lock_handler_->HasCustomIcon());
471 lock_handler_.reset(new TestLockHandler(user_email_));
472 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
473 ScreenlockBridge::Get()->SetLockHandler(lock_handler_.get());
475 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
477 lock_handler_->GetAuthType(user_email_));
478 ASSERT_TRUE(lock_handler_->HasCustomIcon());
485 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
487 lock_handler_->GetAuthType(user_email_));
488 ASSERT_TRUE(lock_handler_->HasCustomIcon());
491 lock_handler_.reset(new TestLockHandler(user_email_));
492 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
497 ScreenlockBridge::Get()->SetLockHandler(lock_handler_.get());
499 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
501 lock_handler_->GetAuthType(user_email_));
502 ASSERT_TRUE(lock_handler_->HasCustomIcon());
503 EXPECT_EQ(kSpinnerIconId, lock_handler_->GetCustomIconId());
525 ASSERT_TRUE(lock_handler_->HasCustomIcon()) << "State: " << states[i];
526 EXPECT_FALSE(lock_handler_->CustomIconHardlocksOnClick())
531 lock_handler_.reset(new TestLockHandler(user_email_));
532 ScreenlockBridge::Get()->SetLockHandler(lock_handler_.get());
536 ASSERT_TRUE(lock_handler_->HasCustomIcon()) << "State: " << states[i];
537 EXPECT_TRUE(lock_handler_->CustomIconHardlocksOnClick())
547 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
548 ASSERT_TRUE(lock_handler_->HasCustomIcon());
549 EXPECT_EQ(kLockedIconId, lock_handler_->GetCustomIconId());
554 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
555 ASSERT_FALSE(lock_handler_->HasCustomIcon());
562 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
563 ASSERT_TRUE(lock_handler_->HasCustomIcon());
564 EXPECT_EQ(kLockedIconId, lock_handler_->GetCustomIconId());
569 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
570 ASSERT_TRUE(lock_handler_->HasCustomIcon());
571 EXPECT_EQ(kHardlockedIconId, lock_handler_->GetCustomIconId());
576 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
577 ASSERT_TRUE(lock_handler_->HasCustomIcon());
578 EXPECT_EQ(kHardlockedIconId, lock_handler_->GetCustomIconId());
588 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
589 ASSERT_TRUE(lock_handler_->HasCustomIcon());
590 EXPECT_EQ(kLockedIconId, lock_handler_->GetCustomIconId());
595 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
596 ASSERT_TRUE(lock_handler_->HasCustomIcon());
597 EXPECT_EQ(kLockedIconId, lock_handler_->GetCustomIconId());
604 ASSERT_TRUE(lock_handler_->HasCustomIcon());
609 ASSERT_FALSE(lock_handler_->HasCustomIcon());
617 lock_handler_->SetAuthValue(base::ASCIIToUTF16("xxx"));
624 lock_handler_->GetAuthValue());
629 EXPECT_EQ(base::string16(), lock_handler_->GetAuthValue());
634 lock_handler_->SetAuthValue(base::ASCIIToUTF16("xxx"));
638 EXPECT_EQ(base::ASCIIToUTF16("xxx"), lock_handler_->GetAuthValue());
642 EXPECT_EQ(base::ASCIIToUTF16("xxx"), lock_handler_->GetAuthValue());
646 EXPECT_EQ(base::ASCIIToUTF16("xxx"), lock_handler_->GetAuthValue());
647 ASSERT_TRUE(lock_handler_->HasCustomIcon());
648 EXPECT_EQ(kSpinnerIconId, lock_handler_->GetCustomIconId());
655 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
657 lock_handler_->GetAuthType(user_email_));
662 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
664 lock_handler_->GetAuthType(user_email_));
665 ASSERT_TRUE(lock_handler_->HasCustomIcon());
666 EXPECT_EQ(kHardlockedIconId, lock_handler_->GetCustomIconId());
670 ASSERT_TRUE(lock_handler_->HasCustomIcon());
671 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
675 ASSERT_TRUE(lock_handler_->HasCustomIcon());
676 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
678 lock_handler_->GetAuthType(user_email_));
688 EXPECT_EQ(2u, lock_handler_->GetAndResetShowIconCount());
694 lock_handler_.reset(new TestLockHandler(user_email_));
695 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
696 ScreenlockBridge::Get()->SetLockHandler(lock_handler_.get());
701 EXPECT_EQ(2u, lock_handler_->GetAndResetShowIconCount());
702 EXPECT_TRUE(lock_handler_->HasCustomIcon());
705 lock_handler_.reset(new TestLockHandler(user_email_));
706 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
707 ScreenlockBridge::Get()->SetLockHandler(lock_handler_.get());
709 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
710 EXPECT_TRUE(lock_handler_->HasCustomIcon());
712 lock_handler_->GetAuthType(user_email_));
713 EXPECT_EQ(kLockedIconId, lock_handler_->GetCustomIconId());
717 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
718 EXPECT_TRUE(lock_handler_->HasCustomIcon());
720 lock_handler_->GetAuthType(user_email_));
721 EXPECT_TRUE(lock_handler_->CustomIconHardlocksOnClick());
729 EXPECT_EQ(2u, lock_handler_->GetAndResetShowIconCount());
732 lock_handler_.reset(new TestLockHandler(user_email_));
733 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
734 ScreenlockBridge::Get()->SetLockHandler(lock_handler_.get());
736 EXPECT_EQ(1u, lock_handler_->GetAndResetShowIconCount());
738 lock_handler_->GetAuthType(user_email_));
739 ASSERT_TRUE(lock_handler_->HasCustomIcon());
740 EXPECT_EQ(kHardlockedIconId, lock_handler_->GetCustomIconId());
744 EXPECT_EQ(0u, lock_handler_->GetAndResetShowIconCount());
745 EXPECT_TRUE(lock_handler_->HasCustomIcon());
747 lock_handler_->GetAuthType(user_email_));
751 lock_handler_->SetAuthType(user_email_,
770 lock_handler_->GetAuthType(user_email_));
784 lock_handler_->GetAuthType(user_email_));