diff options
author | creis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-28 17:29:35 +0000 |
---|---|---|
committer | creis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-28 17:29:35 +0000 |
commit | 381162b2224c18d592e077aae94343cb73296bb9 (patch) | |
tree | 4fe4fa6efe4a65f66c824d2298d538ffd9d98011 /chrome/browser/extensions/extension_processes_apitest.cc | |
parent | 9ad59068b7c34cae14bd70e01cef2adb1d617409 (diff) | |
download | chromium_src-381162b2224c18d592e077aae94343cb73296bb9.zip chromium_src-381162b2224c18d592e077aae94343cb73296bb9.tar.gz chromium_src-381162b2224c18d592e077aae94343cb73296bb9.tar.bz2 |
Adds an experimental processes module to the extensions API.
This first step adds only a Process object with an id, along with a
getProcessForTab function.
BUG=32303
TEST=browser_test.exe --gtest_filter=ExtensionAPITest.Processes
Review URL: http://codereview.chromium.org/551090
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37411 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_processes_apitest.cc')
-rw-r--r-- | chrome/browser/extensions/extension_processes_apitest.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_processes_apitest.cc b/chrome/browser/extensions/extension_processes_apitest.cc new file mode 100644 index 0000000..f5531d0 --- /dev/null +++ b/chrome/browser/extensions/extension_processes_apitest.cc @@ -0,0 +1,14 @@ +// Copyright (c) 2010 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 "chrome/browser/extensions/extension_apitest.h" +#include "chrome/common/chrome_switches.h" + +IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Processes) { + CommandLine::ForCurrentProcess()->AppendSwitch( + switches::kEnableExperimentalExtensionApis); + + ASSERT_TRUE(RunExtensionTest("processes")) << message_; +} |