fake-speech-engine: more search test commands.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 6 Jun 2013 13:43:43 +0000 (16:43 +0300)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 6 Jun 2013 13:57:43 +0000 (16:57 +0300)
src/plugins/fake-speech-engine/fake.c

index 18e353f..7a02b49 100644 (file)
@@ -67,8 +67,10 @@ static const char *cmd_dial1[] = { "hal", "dial" };
 static const char *cmd_artist[] = { "hal", "play", "artist", "foobar" };
 static const char *cmd_search1[] = { "search", "for", "google", "glass" };
 static const char *cmd_search2[] = { "google", "for", "george", "w", "bush" };
+static const char *cmd_search3[] = { "search", "for" };
 
 static fake_candidate_t commands[] = {
+    { tokens: (char **)cmd_search3, ntoken: MRP_ARRAY_SIZE(cmd_search3)  },
     { tokens: (char **)cmd_search1, ntoken: MRP_ARRAY_SIZE(cmd_search1)  },
     { tokens: (char **)cmd_search2, ntoken: MRP_ARRAY_SIZE(cmd_search2)  },
     { tokens: (char **)cmd_hal   , ntoken: MRP_ARRAY_SIZE(cmd_hal)    },
@@ -80,6 +82,7 @@ static fake_candidate_t commands[] = {
     { tokens: (char **)cmd_dial1 , ntoken: MRP_ARRAY_SIZE(cmd_dial1)  },
     { tokens: (char **)cmd_search1, ntoken: MRP_ARRAY_SIZE(cmd_search1)  },
     { tokens: (char **)cmd_search2, ntoken: MRP_ARRAY_SIZE(cmd_search2)  },
+    { tokens: (char **)cmd_search3, ntoken: MRP_ARRAY_SIZE(cmd_search3)  },
     { NULL, 0 }
 };