Updated copyright notice and cleaned up includes.
[ Merge of http://go/wvgerrit/137810 ] Bug: 204946540 Test: Metric unit tests Change-Id: I78f839fafd27604a2bb78c04d587c40919c5372d
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
// Copyright 2017 Google Inc. All Rights Reserved.
|
||||
// Copyright 2017 Google LLC. All Rights Reserved. This file and proprietary
|
||||
// source code may only be used and distributed under the Widevine License
|
||||
// Agreement.
|
||||
//
|
||||
// Unit tests for CounterMetric
|
||||
|
||||
#include "counter_metric.h"
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
#include "gtest/gtest.h"
|
||||
#include "string_conversions.h"
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
using drm_metrics::TestMetrics;
|
||||
using testing::IsNull;
|
||||
using testing::NotNull;
|
||||
#include "pow2bucket.h"
|
||||
#include "string_conversions.h"
|
||||
#include "wv_cdm_types.h"
|
||||
|
||||
namespace wvcdm {
|
||||
namespace metrics {
|
||||
using drm_metrics::TestMetrics;
|
||||
|
||||
TEST(CounterMetricTest, NoFieldsEmpty) {
|
||||
wvcdm::metrics::CounterMetric<> metric;
|
||||
@@ -126,6 +126,5 @@ TEST(CounterMetricTest, FourFieldsSuccess) {
|
||||
EXPECT_EQ(kLevel3,
|
||||
metric_proto.test_counters(0).attributes().security_level());
|
||||
}
|
||||
|
||||
} // namespace metrics
|
||||
} // namespace wvcdm
|
||||
|
||||
Reference in New Issue
Block a user