Initial v16 ODK Library
This commit has the initial ODK library. Partners may use this code to begin integrating the ODK library into their platform. The functionality is not complete, but this should help partners get an early start playing with build files.
This commit is contained in:
21
oemcrypto/odk/test/odk_timer_test.cpp
Normal file
21
oemcrypto/odk/test/odk_timer_test.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright 2019 Google LLC. All Rights Reserved. This file and proprietary
|
||||
* source code may only be used and distributed under the Widevine Master
|
||||
* License Agreement.
|
||||
*/
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "odk_timer.h"
|
||||
|
||||
TEST(OdkTimerTest, Init) {
|
||||
ODK_ClockValues clock_values;
|
||||
uint64_t time = 42;
|
||||
ODK_InitializeClockValues(&clock_values, time);
|
||||
EXPECT_EQ(clock_values.time_of_license_signed, time);
|
||||
EXPECT_EQ(clock_values.time_of_first_decrypt, 0);
|
||||
EXPECT_EQ(clock_values.time_of_last_decrypt, 0);
|
||||
EXPECT_EQ(clock_values.time_when_timer_expires, 0);
|
||||
EXPECT_EQ(clock_values.timer_status, 0);
|
||||
EXPECT_EQ(clock_values.status, kUnused);
|
||||
}
|
||||
Reference in New Issue
Block a user