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

Unified Diff: chrome/browser/extensions/api/messaging/native_messaging_apitest_posix.cc

Issue 12285015: Require manifests for native messaging hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/messaging/native_messaging_apitest_posix.cc
diff --git a/chrome/browser/extensions/api/messaging/native_messaging_apitest_posix.cc b/chrome/browser/extensions/api/messaging/native_messaging_apitest_posix.cc
deleted file mode 100644
index 6450b78e629c56a3fea28bf04ba0b23f7c7edda7..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/messaging/native_messaging_apitest_posix.cc
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/command_line.h"
-#include "base/file_path.h"
-#include "base/path_service.h"
-#include "chrome/browser/extensions/extension_apitest.h"
-#include "chrome/common/chrome_paths.h"
-#include "chrome/common/chrome_switches.h"
-#include "chrome/common/chrome_version_info.h"
-#include "chrome/common/extensions/features/feature.h"
-
-IN_PROC_BROWSER_TEST_F(ExtensionApiTest, NativeMessageBasic) {
- CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kEnableNativeMessaging);
- // Override the user data dir to point to our native app.
- extensions::Feature::ScopedCurrentChannel
- current_channel(chrome::VersionInfo::CHANNEL_DEV);
- base::FilePath test_user_data_dir;
- ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_user_data_dir));
- test_user_data_dir = test_user_data_dir.AppendASCII("native_messaging");
- ASSERT_TRUE(PathService::Override(chrome::DIR_USER_DATA, test_user_data_dir));
- ASSERT_TRUE(RunExtensionTest("native_messaging")) << message_;
-}

Powered by Google App Engine
This is Rietveld 408576698