Shaka Packager SDK
packager
media
base
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
12
namespace
google
{
13
namespace
protobuf {
14
class
Message;
15
}
// namespace protobuf
16
}
// namespace google
17
18
namespace
shaka
{
19
namespace
media {
20
24
std::string MessageToJsonString(
const
google::protobuf::Message& message);
25
30
bool
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_
shaka
All the methods that are virtual are virtual for mocking.
Definition:
gflags_hex_bytes.cc:11
google
Definition:
proto_json_util.h:12
Generated on Thu Dec 20 2018 14:37:37 for Shaka Packager SDK by
1.8.13