blob: 202234ad4834865287d9cd3efc369c4efe662e1d [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package templates
const TestBase = `
{{- define "TestBase" -}}
// WARNING: This file is machine generated by fidlgen.
#pragma once
{{ range .Headers -}}
#include <{{ . }}>
{{ end -}}
{{- range .Library }}
namespace {{ . }} {
{{- end }}
namespace testing {
{{ "" }}
{{- range .Decls }}
{{- if Eq .Kind Kinds.Interface }}{{ template "InterfaceTestBase" . }}{{- end }}
{{- end -}}
} // namespace testing
{{- range .LibraryReversed }}
} // namespace {{ . }}
{{- end }}
{{ end }}
`