chromium/third_party/blink/common/frame/user_activation_state_unittest.cc

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/public/common/frame/user_activation_state.h"
#include "third_party/blink/public/mojom/frame/user_activation_notification_type.mojom.h"

#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace blink {

class UserActivationStateTest : public testing::Test {};

// static
base::TimeTicks UserActivationStateTest::now_ticks_;

TEST_F(UserActivationStateTest, ConsumptionTest) {}

// MSan changes the timing of user activations, so skip this test.  We could
// memorize the changes, but they're arbitrary and not worth enforcing.  We
// could also move the timeouts into a header, but there's value in having
// them hardcoded here in case of accidental changes to the timeout.
#if !defined(MEMORY_SANITIZER)
TEST_F(UserActivationStateTest, ExpirationTest) {}
#endif  // !MEMORY_SANITIZER

TEST_F(UserActivationStateTest, ClearingTest) {}

// MSan changes the timing of user activations, so skip this test.  We could
// memorize the changes, but they're arbitrary and not worth enforcing.  We
// could also move the timeouts into a header, but there's value in having
// them hardcoded here in case of accidental changes to the timeout.
#if !defined(MEMORY_SANITIZER)
TEST_F(UserActivationStateTest, ConsumptionPlusExpirationTest) {}
#endif  // !MEMORY_SANITIZER

}  // namespace blink