mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
34 lines
579 B
C++
34 lines
579 B
C++
|
/*
|
||
|
* Copyright (c) 2024, Andrew Kaster <andrew@ladybird.org>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#include <Ladybird/Headless/Fixture.h>
|
||
|
|
||
|
namespace Ladybird {
|
||
|
|
||
|
// Key function for Fixture
|
||
|
Fixture::~Fixture() = default;
|
||
|
|
||
|
Optional<Fixture&> Fixture::lookup(StringView name)
|
||
|
{
|
||
|
for (auto& fixture : all()) {
|
||
|
if (fixture->name() == name)
|
||
|
return *fixture;
|
||
|
}
|
||
|
return {};
|
||
|
}
|
||
|
|
||
|
Vector<NonnullOwnPtr<Fixture>>& Fixture::all()
|
||
|
{
|
||
|
static Vector<NonnullOwnPtr<Fixture>> fixtures;
|
||
|
return fixtures;
|
||
|
}
|
||
|
|
||
|
void Fixture::initialize_fixtures()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
}
|