Lines Matching refs:HandleRequest
104 const base::DictionaryValue& HandleRequest(
108 handler_->HandleRequest(api, auth_header_, input,
114 const base::DictionaryValue& HandleRequest(const std::string& api,
118 return HandleRequest(api, &dictionary);
124 handler_->HandleRequest(api, auth_header_, &dictionary,
182 HandleRequest("/privet/info", nullptr));
188 HandleRequest("/privet/info", "{}"));
194 HandleRequest("/privet/info", "{}"));
204 HandleRequest("/privet/info", "{}"));
209 HandleRequest("/privet/v3/setup/start", "{}"));
254 EXPECT_JSON_EQ(kExpected, HandleRequest("/privet/info", "{}"));
317 EXPECT_JSON_EQ(kExpected, HandleRequest("/privet/info", "{}"));
322 HandleRequest("/privet/v3/pairing/start",
326 HandleRequest("/privet/v3/pairing/start",
333 HandleRequest("/privet/v3/pairing/start",
340 HandleRequest(
346 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/pairing/cancel",
352 HandleRequest("/privet/v3/auth", "{}"));
357 HandleRequest("/privet/v3/auth", "{'mode':'unknown'}"));
362 HandleRequest("/privet/v3/auth", "{'mode':'anonymous'}"));
368 HandleRequest("/privet/v3/auth",
374 HandleRequest("/privet/v3/auth",
390 HandleRequest("/privet/v3/auth", kInput));
401 HandleRequest("/privet/v3/auth",
422 EXPECT_JSON_EQ(kExpected, HandleRequest("/privet/v3/auth", kInput));
442 EXPECT_JSON_EQ(kExpected, HandleRequest("/privet/v3/auth", kInput));
462 EXPECT_JSON_EQ(kExpected, HandleRequest("/privet/v3/auth", kInput));
477 HandleRequest("/privet/v3/auth", kInput));
496 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/setup/status", "{}"));
508 HandleRequest("/privet/v3/setup/status", "{}"));
526 "wifi", HandleRequest("/privet/v3/setup/status", "{}")));
538 EXPECT_JSON_EQ(kExpected, HandleRequest("/privet/v3/setup/status", "{}"));
556 "gcd", HandleRequest("/privet/v3/setup/status", "{}")));
568 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/setup/start", kInput));
578 HandleRequest("/privet/v3/setup/start", kInputWifi));
586 HandleRequest("/privet/v3/setup/start", kInputRegistration));
592 HandleRequest("/privet/v3/setup/start", "{'wifi': {}}"));
607 HandleRequest("/privet/v3/setup/start", kInput));
617 EXPECT_JSON_EQ(kExpected, HandleRequest("/privet/v3/setup/start", kInput));
630 HandleRequest("/privet/v3/setup/start", kInput));
646 HandleRequest("/privet/v3/setup/start", kInput));
656 EXPECT_JSON_EQ(kExpected, HandleRequest("/privet/v3/setup/start", kInput));
672 HandleRequest("/privet/v3/setup/start", kInput));
677 HandleRequest("/privet/v3/accessControl/claim", "{}"));
682 HandleRequest("/privet/v3/accessControl/confirm",
688 HandleRequest("/privet/v3/state", "{}"));
693 HandleRequest("/privet/v3/state", "{}"));
698 HandleRequest("/privet/v3/commandDefs", "{}"));
703 HandleRequest("/privet/v3/commandDefs", "{}"));
708 HandleRequest("/privet/v3/traits", "{}"));
713 HandleRequest("/privet/v3/traits", "{}"));
718 HandleRequest("/privet/v3/components", "{}"));
723 HandleRequest("/privet/v3/components", "{}"));
729 HandleRequest("/privet/v3/components", "{}"));
772 EXPECT_JSON_EQ(kExpected1, HandleRequest("/privet/v3/components",
783 EXPECT_JSON_EQ(kExpected2, HandleRequest("/privet/v3/components",
801 EXPECT_JSON_EQ(kExpected3, HandleRequest("/privet/v3/components",
831 HandleRequest("/privet/v3/components",
853 HandleRequest(
865 HandleRequest("/privet/v3/components",
881 HandleRequest("/privet/v3/commands/execute", kInput));
896 HandleRequest("/privet/v3/commands/status", kInput));
907 HandleRequest("/privet/v3/commands/status", "{'id': '15'}"));
921 HandleRequest("/privet/v3/commands/cancel", "{'id': '8'}"));
932 HandleRequest("/privet/v3/commands/cancel", "{'id': '11'}"));
951 EXPECT_JSON_EQ(kExpected, HandleRequest("/privet/v3/commands/list", "{}"));
970 HandleRequest("/privet/v3/checkForUpdates", kInput));
993 HandleRequest("/privet/v3/checkForUpdates", kInput));
1006 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/checkForUpdates", kInput));
1028 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/checkForUpdates", kInput));
1050 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/checkForUpdates", kInput));
1072 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/checkForUpdates", kInput));
1092 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/checkForUpdates", kInput));
1114 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/checkForUpdates", kInput));
1148 HandleRequest("/privet/v3/checkForUpdates", kInput));
1164 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/checkForUpdates", kInput));
1189 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/checkForUpdates", kInput));
1211 EXPECT_JSON_EQ(kInput, HandleRequest("/privet/v3/checkForUpdates", kInput));
1228 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/checkForUpdates", kInput));
1254 EXPECT_JSON_EQ("{}", HandleRequest("/privet/v3/checkForUpdates", kInput));