1) Removes dependency of common/status.h from wv_cas_types.

2) Do not use glogs in example binary code.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=229984175
This commit is contained in:
Widevine Buildbot
2019-01-18 21:36:07 +00:00
parent ac85b0ccf1
commit e90f127558
7 changed files with 3 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -8,9 +8,9 @@
// Example of how to use types/functions in wv_cas_types.
#include <iostream>
#include <string>
#include "glog/logging.h"
#include "media_cas_packager_sdk/public/wv_cas_types.h"
void CallCreateWvCasEncryptionRequestJson() {
@@ -21,7 +21,8 @@ void CallCreateWvCasEncryptionRequestJson() {
request.key_rotation = true;
std::string request_json;
widevine::cas::CreateWvCasEncryptionRequestJson(request, &request_json);
LOG(INFO) << "CreateWvCasEncryptionRequestJson returns " << request_json;
std::cout << "CreateWvCasEncryptionRequestJson returns " << request_json
<< std::endl;
}
int main(int argc, char **argv) {

Binary file not shown.

View File

@@ -11,7 +11,6 @@
#include "glog/logging.h"
#include "base/macros.h"
#include "google/protobuf/util/json_util.h"
#include "common/status.h"
#include "protos/public/media_cas_encryption.pb.h"
using google::protobuf::util::JsonPrintOptions;

View File

@@ -12,8 +12,6 @@
#include <string>
#include <vector>
#include "common/status.h"
namespace widevine {
namespace cas {