Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_api_unittest.cc

Issue 2841623003: Remove base::Value::Get{Buffer,Size} (Closed)
Patch Set: std::vector::assign instead of std::vector::operator= Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_api_unittest.cc
diff --git a/chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_api_unittest.cc b/chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_api_unittest.cc
index 29bda417906ba8535cdd39c37a2f590c38aeee3d..31338257998cc7aa8e5c6aa8da148e437cb168ab 100644
--- a/chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_api_unittest.cc
+++ b/chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_api_unittest.cc
@@ -392,8 +392,8 @@ TEST_F(EPKChallengeMachineKeyTest, Success) {
const base::Value* response;
ASSERT_TRUE(value->GetAsBinary(&response));
- EXPECT_EQ("response",
- std::string(response->GetBuffer(), response->GetSize()));
+ EXPECT_EQ("response", std::string(response->GetBlob().data(),
+ response->GetBlob().size()));
}
TEST_F(EPKChallengeMachineKeyTest, KeyRegisteredSuccess) {
@@ -422,8 +422,8 @@ TEST_F(EPKChallengeMachineKeyTest, KeyRegisteredSuccess) {
const base::Value* response;
ASSERT_TRUE(value->GetAsBinary(&response));
- EXPECT_EQ("response",
- std::string(response->GetBuffer(), response->GetSize()));
+ EXPECT_EQ("response", std::string(response->GetBlob().data(),
+ response->GetBlob().size()));
}
TEST_F(EPKChallengeMachineKeyTest, AttestationNotPrepared) {
@@ -597,8 +597,8 @@ TEST_F(EPKChallengeUserKeyTest, Success) {
const base::Value* response;
ASSERT_TRUE(value->GetAsBinary(&response));
- EXPECT_EQ("response",
- std::string(response->GetBuffer(), response->GetSize()));
+ EXPECT_EQ("response", std::string(response->GetBlob().data(),
+ response->GetBlob().size()));
}
TEST_F(EPKChallengeUserKeyTest, AttestationNotPrepared) {

Powered by Google App Engine
This is Rietveld 408576698