blob: f390a0161f4b445210311cb8bc585f5487232d35 [file] [log] [blame]
// Copyright (c) 2013 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 "mist/context.h"
namespace mist {
class MockConfigLoader;
class MockUdev;
// A mock context class, which replaces helper objects in the Context class with
// mocks and is used in place of the Context class in unit tests.
class MockContext : public Context {
MockContext() = default;
~MockContext() override = default;
// Initializes all helper objects with mocks in the context for unit testing.
// Always returns true.
bool Initialize() override;
// Returns the MockConfigLoader object held by this context object.
MockConfigLoader* GetMockConfigLoader() const;
// Returns the MockUdev object held by this context object.
MockUdev* GetMockUdev() const;
} // namespace mist