Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1016)

Side by Side Diff: chrome/test/data/extensions/api_test/media_perception_private/state/runtest.js

Issue 2791983004: DBus MediaAnalyticsClient and media_perception pb. (Closed)
Patch Set: Integrate weigua@ Upstart POC and handle D-Bus Upstart callbacks Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698