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

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: C++ test impl and target Created 3 years, 8 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"
6 let state = { status: statusEnum }
7 chrome.mediaPerceptionPrivate.setState(state, function (response) {
8 chrome.test.assertEq(response.status, statusEnum);
9 chrome.test.failure("Setting state returns unexpected state.");
10 });
11
12 chrome.mediaPerceptionPrivate.getState(function (response) {
13 chrome.test.assertEq(response.status, statusEnum);
14 chrome.test.failure("Getting state returns unexpected state.");
15 });
16
17 chrome.test.succeed("Setting and getting state completed successfully.");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698