Lines Matching refs:Components
716 TEST_F(PrivetHandlerTestWithAuth, Components) {
717 EXPECT_JSON_EQ("{'components': {'test': {}}, 'fingerprint': '1'}",
718 HandleRequest("/privet/v3/components", "{}"));
722 EXPECT_JSON_EQ("{'components': {'test': {}}, 'fingerprint': '2'}",
723 HandleRequest("/privet/v3/components", "{}"));
725 // State change will also change the components fingerprint.
728 EXPECT_JSON_EQ("{'components': {'test': {}}, 'fingerprint': '3'}",
729 HandleRequest("/privet/v3/components", "{}"));
741 "components": {
744 "components": {
756 base::DictionaryValue components;
757 LoadTestJson(kComponents, &components);
759 EXPECT_CALL(cloud_, GetComponents()).WillRepeatedly(ReturnRef(components));
761 "components": {
772 EXPECT_JSON_EQ(kExpected1, HandleRequest("/privet/v3/components",
776 "components": {
783 EXPECT_JSON_EQ(kExpected2, HandleRequest("/privet/v3/components",
787 "components": {
789 "components": {
791 "components": {
801 EXPECT_JSON_EQ(kExpected3, HandleRequest("/privet/v3/components",
802 "{'filter':['components']}"));
805 "components": {
813 "components": {
816 "components": {
831 HandleRequest("/privet/v3/components",
832 "{'filter':['traits', 'components', 'state']}"));
835 ASSERT_TRUE(components.GetDictionary("comp1.components.comp2", &comp2));
839 "components": {
842 "components": {
854 "/privet/v3/components",
855 "{'path':'comp1.comp2', 'filter':['traits', 'components']}"));
865 HandleRequest("/privet/v3/components",
866 "{'path':'comp7', 'filter':['traits', 'components']}"));