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

Side by Side Diff: extensions/browser/api/media_perception_private/media_perception_private_apitest.cc

Issue 2858353002: MediaPerceptionPrivate API impl and testing. (Closed)
Patch Set: Addressing comments on API implementation. 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 #include "chrome/browser/extensions/extension_apitest.h"
6 #include "extensions/browser/api/media_perception_private/media_perception_priva te_api.h"
7 #include "extensions/test/extension_test_message_listener.h"
8
9 namespace extensions {
10
11 class MediaPerceptionPrivateApiTest : public ExtensionApiTest {
12 public:
13 MediaPerceptionPrivateApiTest() {}
14
15 ~MediaPerceptionPrivateApiTest() override {}
16 };
17
18 // Verify that we can set and get mediaPerception system state.
19 IN_PROC_BROWSER_TEST_F(MediaPerceptionPrivateApiTest, State) {
20 ASSERT_TRUE(RunExtensionTest("media_perception_private/state")) << message_;
tbarzic 2017/05/09 01:28:37 can you run this as platform app test? given that
Luke Sorenson 2017/05/09 21:05:45 Done.
21 }
22
23 // Verify that we can request Diagnostics.
24 IN_PROC_BROWSER_TEST_F(MediaPerceptionPrivateApiTest, GetDiagnostics) {
25 ASSERT_TRUE(RunExtensionTest("media_perception_private/diagnostics"))
26 << message_;
27 }
28
29 // Verify that we can listen for MediaPerceptionDetection signals and handle
30 // them.
31 IN_PROC_BROWSER_TEST_F(MediaPerceptionPrivateApiTest, MediaPerception) {
32 ASSERT_TRUE(RunExtensionTest("media_perception_private/media_perception"))
33 << message_;
34 }
35
36 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698