blob: a90fba102276b47741f8a98f9bf199a839c104f9 [file] [log] [blame]
Alex Deymo2de23f52014-02-26 14:30:13 -08001// 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
10namespace chromeos_policy_manager {
11
12TEST(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