| // Copyright (c) 2014 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include <gtest/gtest.h> |
| |
| #include "update_engine/policy_manager/real_state.h" |
| #include "update_engine/policy_manager/pmtest_utils.h" |
| |
| namespace chromeos_policy_manager { |
| |
| TEST(PmRealStateTest, InitTest) { |
| RealState state; |
| EXPECT_TRUE(state.Init()); |
| // Check that the providers are being initialized. |
| PMTEST_ASSERT_NOT_NULL(state.random_provider()); |
| PMTEST_EXPECT_NOT_NULL(state.random_provider()->seed()); |
| } |
| |
| } // namespace chromeos_policy_manager |