Home | History | Annotate | Download | only in messaging
      1 // Copyright (c) 2012 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/api/messaging/native_messaging_test_util.h"
      6 #include "chrome/browser/extensions/extension_apitest.h"
      7 
      8 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, NativeMessagingBasic) {
      9   extensions::ScopedTestNativeMessagingHost test_host;
     10   ASSERT_NO_FATAL_FAILURE(test_host.RegisterTestHost(false));
     11   ASSERT_TRUE(RunExtensionTest("native_messaging")) << message_;
     12 }
     13 
     14 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, UserLevelNativeMessaging) {
     15   extensions::ScopedTestNativeMessagingHost test_host;
     16   ASSERT_NO_FATAL_FAILURE(test_host.RegisterTestHost(true));
     17   ASSERT_TRUE(RunExtensionTest("native_messaging")) << message_;
     18 }
     19