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

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: Upstart process management 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 statusEnum = "SUSPENDED"
tbarzic 2017/04/27 20:37:35 kStatusEnum
Luke Sorenson 2017/05/03 23:56:06 Done.
6 let state = { status: statusEnum }
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, statusEnum);
20 }
21
22 chrome.test.runTests([setState, getState]);
23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698