Commit 95bf7a9e authored by Tanja Gornak's avatar Tanja Gornak Committed by Commit Bot

Change in the response format from Per User Topic server.

The response format has changed. The CL implements the
change on the client.
* renaming "private_topic_name" property to "privateTopicName"

Bug: 863816, 801985
Change-Id: I7e65b095c3764f73e928a0fa0a2fb5da461eb223
Reviewed-on: https://chromium-review.googlesource.com/1146725Reviewed-by: default avatarPavel Yatsuk <pavely@chromium.org>
Reviewed-by: default avatarJan Krcal <jkrcal@chromium.org>
Commit-Queue: Tatiana Gornak <melandory@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577888}
parent b62bd420
......@@ -137,7 +137,7 @@ TEST_F(PerUserTopicRegistrationManagerTest, ShouldUpdateRegisteredIds) {
std::string response_body = R"(
{
"private_topic_name": "test-pr"
"privateTopicName": "test-pr"
}
)";
......
......@@ -17,7 +17,7 @@ using net::URLRequestStatus;
namespace {
const char kPrivateTopicNameKey[] = "private_topic_name";
const char kPrivateTopicNameKey[] = "privateTopicName";
base::Value* GetPrivateTopicName(base::Value* value) {
if (!value || !value->is_dict()) {
......
......@@ -124,7 +124,7 @@ TEST_F(PerUserTopicRegistrationRequestTest, ShouldSubscribeWithoutErrors) {
.Build();
std::string response_body = R"(
{
"private_topic_name": "test-pr"
"privateTopicName": "test-pr"
}
)";
......@@ -166,7 +166,7 @@ TEST_F(PerUserTopicRegistrationRequestTest,
.Build();
std::string response_body = R"(
{
"private_topic_name": "test-pr"
"privateTopicName": "test-pr"
}
)";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment