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:
@@ -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 = [
|
||||
|
||||
13
chromium_deps/base/check.h
Normal file
13
chromium_deps/base/check.h
Normal 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_
|
||||
13
chromium_deps/base/check_op.h
Normal file
13
chromium_deps/base/check_op.h
Normal 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_
|
||||
Reference in New Issue
Block a user