Shaka Packager SDK
Loading...
Searching...
No Matches
proto_json_util.h
1// Copyright 2018 Google LLC. All rights reserved.
2//
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file or at
5// https://developers.google.com/open-source/licenses/bsd
6
7#ifndef PACKAGER_MEDIA_BASE_PROTO_JSON_UTIL_H_
8#define PACKAGER_MEDIA_BASE_PROTO_JSON_UTIL_H_
9
10#include <string>
11
12namespace google {
13namespace protobuf {
14class Message;
15} // namespace protobuf
16} // namespace google
17
18namespace shaka {
19namespace media {
20
24std::string MessageToJsonString(const google::protobuf::Message& message);
25
30bool JsonStringToMessage(const std::string& input,
31 google::protobuf::Message* message);
32
33} // namespace media
34} // namespace shaka
35
36#endif // PACKAGER_MEDIA_BASE_PROTO_JSON_UTIL_H_
All the methods that are virtual are virtual for mocking.