Alex Deymo | 2de23f5 | 2014-02-26 14:30:13 -0800 | [diff] [blame^] | 1 | // Copyright (c) 2014 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include <gtest/gtest.h> |
| 6 | |
| 7 | #include "update_engine/policy_manager/real_state.h" |
| 8 | #include "update_engine/policy_manager/pmtest_utils.h" |
| 9 | |
| 10 | namespace chromeos_policy_manager { |
| 11 | |
| 12 | TEST(PmRealStateTest, InitTest) { |
| 13 | RealState state; |
| 14 | EXPECT_TRUE(state.Init()); |
| 15 | // Check that the providers are being initialized. |
| 16 | PMTEST_ASSERT_NOT_NULL(state.random_provider()); |
| 17 | PMTEST_EXPECT_NOT_NULL(state.random_provider()->seed()); |
| 18 | } |
| 19 | |
| 20 | } // namespace chromeos_policy_manager |