Export media_cas_proxy_sdk
This commit is contained in:
26
common/string_util_test.cc
Normal file
26
common/string_util_test.cc
Normal file
@@ -0,0 +1,26 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright 2018 Google LLC.
|
||||
//
|
||||
// This software is licensed under the terms defined in the Widevine Master
|
||||
// License Agreement. For a copy of this agreement, please contact
|
||||
// widevine-licensing@google.com.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "common/string_util.h"
|
||||
#include "testing/gmock.h"
|
||||
#include "testing/gunit.h"
|
||||
|
||||
namespace widevine {
|
||||
namespace string_util {
|
||||
|
||||
TEST(StringUtilTest, BitsetStringToBinaryString) {
|
||||
std::string input = "01110100011001010111001101110100";
|
||||
std::string output;
|
||||
|
||||
EXPECT_OK(BitsetStringToBinaryString(input, &output));
|
||||
|
||||
EXPECT_EQ("test", output);
|
||||
}
|
||||
|
||||
} // namespace string_util
|
||||
} // namespace widevine
|
||||
Reference in New Issue
Block a user