 Chromium Code Reviews
 Chromium Code Reviews Issue 2791983004:
  DBus MediaAnalyticsClient and media_perception pb.  (Closed)
    
  
    Issue 2791983004:
  DBus MediaAnalyticsClient and media_perception pb.  (Closed) 
  | OLD | NEW | 
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 let kStatusEnum = "RUNNING" | |
| 
tbarzic
2017/05/05 21:10:41
nit: JS code should use single quotes
 
Luke Sorenson
2017/05/08 19:06:06
Done. In https://codereview.chromium.org/285835300
 | |
| 6 let state = { status: kStatusEnum } | |
| 7 | |
| 8 function setState() { | |
| 9 chrome.mediaPerceptionPrivate.setState( | |
| 10 state, chrome.test.callback(stateCallback)); | |
| 11 } | |
| 12 | |
| 13 function getState() { | |
| 14 chrome.mediaPerceptionPrivate.getState( | |
| 15 chrome.test.callback(stateCallback)); | |
| 16 } | |
| 17 | |
| 18 function stateCallback(response) { | |
| 19 chrome.test.assertEq(response.status, kStatusEnum); | |
| 20 } | |
| 21 | |
| 22 chrome.test.runTests([setState, getState]); | |
| 23 | |
| OLD | NEW |