Revert 285173 "Removed InProcessBrowserTest::CleanUpOnMainThread()"
[chromium-blink-merge.git] / chrome / browser / extensions / api / messaging / native_messaging_apitest.cc
blobeac88e836229810b449e98a6e2b8b7fcd3b23db3
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.
5 #include "chrome/browser/extensions/api/messaging/native_messaging_test_util.h"
6 #include "chrome/browser/extensions/extension_apitest.h"
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_;
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_;