Multiple Renewal Keys and Logging

In this code update we add a test to ensure that the White-box API
implementation handle seeing multiple renewal keys correctly. Since
there should be no more than one renewal key in a license response, upon
seeing a second renewal key, the implementation should return a
WB_RESULT_INVALID_PARAMETER code.

Due to changes in how Chrome manages CHECKS and DCHECKS, this code has
been updated to use the new headers.
This commit is contained in:
Aaron Vaage
2020-08-21 17:18:28 -07:00
parent 789377fed2
commit 69ea909ff5
20 changed files with 95 additions and 34 deletions

View File

@@ -2,7 +2,11 @@
cc_library(
name = "glog",
hdrs = ["logging.h"],
hdrs = [
"check.h",
"check_op.h",
"logging.h"
],
strip_include_prefix = "//chromium_deps",
visibility = ["//visibility:public"],
deps = [

View File

@@ -0,0 +1,13 @@
// Copyright 2020 Google LLC. All Rights Reserved.
#ifndef BASE_CHECK_H_
#define BASE_CHECK_H_
// Chromium has split CHECK/DCHECK out of logging.h into it's own header.
// However, it's all still together in the GLOG header, so just include
// it. This may cause problems when importing into Alcatraz as code using
// anyone of these headers gets all the functions, not just the ones
// represented by this header.
#include "base/logging.h"
#endif // BASE_CHECK_H_

View File

@@ -0,0 +1,13 @@
// Copyright 2020 Google LLC. All Rights Reserved.
#ifndef BASE_CHECK_OP_H_
#define BASE_CHECK_OP_H_
// Chromium has split CHECK_EQ/etc. out of logging.h into it's own header.
// However, it's all still together in the GLOG header, so just include
// it. This may cause problems when importing into Alcatraz as code using
// anyone of these headers gets all the functions, not just the ones
// represented by this header.
#include "base/logging.h"
#endif // BASE_CHECK_OP_H_