blob: 51406c3f2c44b88b9bdc50d13366c479721c2bcc [file] [log] [blame]
// 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 "update_engine/policy_manager/real_system_provider.h"
#include <gtest/gtest.h>
#include "update_engine/policy_manager/pmtest_utils.h"
namespace chromeos_policy_manager {
class PmRealSystemProviderTest : public ::testing::Test {
protected:
virtual void SetUp() {
provider_.reset(new RealSystemProvider());
EXPECT_TRUE(provider_->Init());
}
scoped_ptr<RealSystemProvider> provider_;
};
TEST_F(PmRealSystemProviderTest, InitTest) {
PMTEST_EXPECT_NOT_NULL(provider_->var_is_normal_boot_mode());
PMTEST_EXPECT_NOT_NULL(provider_->var_is_official_build());
}
} // namespace chromeos_policy_manager