feat(omaha): add Track field

this is another update_engine extension. Add it.
This commit is contained in:
Brandon Philips 2013-07-02 09:41:53 -07:00
parent 37c9cc50fb
commit 5140f37b40
3 changed files with 6 additions and 1 deletions

View file

@ -77,6 +77,7 @@ type App struct {
Lang string `xml:"lang,attr,omitempty"`
Client string `xml:"client,attr,omitempty"`
InstallAge string `xml:"installage,attr,omitempty"`
Track string `xml:"track,attr,omitempty"`
FromTrack string `xml:"from_track,attr,omitempty"`
Status string `xml:"status,attr,omitempty"`
}

View file

@ -40,6 +40,10 @@ func TestOmahaRequestUpdateCheck(t *testing.T) {
t.Error("developer-build")
}
if v.Apps[0].Track != "dev-channel" {
t.Error("dev-channel")
}
if v.Apps[0].Events[0].Type != "3" {
t.Error("developer-build")
}