| // Copyright 2020 The Chromium Authors | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| import * as Common from '../core/common/common.js'; | |
| import type * as SDK from '../core/sdk/sdk.js'; | |
| import type * as IssuesManager from '../models/issues_manager/issues_manager.js'; | |
| export class MockIssuesModel extends Common.ObjectWrapper.ObjectWrapper<SDK.IssuesModel.EventTypes> { | |
| #mockIssues: Iterable<IssuesManager.Issue.Issue>; | |
| constructor(issues: Iterable<IssuesManager.Issue.Issue>) { | |
| super(); | |
| this.#mockIssues = issues; | |
| } | |
| issues(): Iterable<IssuesManager.Issue.Issue> { | |
| return this.#mockIssues; | |
| } | |
| target() { | |
| return {id: () => 'fake-id'}; | |
| } | |
| } |