diff options
author | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-29 14:45:53 +0000 |
---|---|---|
committer | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-29 14:45:53 +0000 |
commit | 225020ce43ccb72f34a73c62dd4aec7861ea94d6 (patch) | |
tree | 6076da069cbd48ee45f88ea923eeb8a609f8be6a /sandbox | |
parent | 2c5c7e875ce6da463ae266f2183a529101c6f96c (diff) | |
download | chromium_src-225020ce43ccb72f34a73c62dd4aec7861ea94d6.zip chromium_src-225020ce43ccb72f34a73c62dd4aec7861ea94d6.tar.gz chromium_src-225020ce43ccb72f34a73c62dd4aec7861ea94d6.tar.bz2 |
Replace all usages of FRIEND_TEST() with FRIEND_TEST_ALL_PREFIXES()
BUG=105287
TEST=NONE
Review URL: http://codereview.chromium.org/8678017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111935 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/src/interception.h | 13 | ||||
-rw-r--r-- | sandbox/src/sharedmem_ipc_server.h | 9 |
2 files changed, 11 insertions, 11 deletions
diff --git a/sandbox/src/interception.h b/sandbox/src/interception.h index 3dd3639..c02b0ff 100644 --- a/sandbox/src/interception.h +++ b/sandbox/src/interception.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -13,12 +13,9 @@ #include <string> #include "base/basictypes.h" +#include "base/gtest_prod_util.h" #include "sandbox/src/sandbox_types.h" -#pragma warning(push, 3) -#include "testing/gtest/include/gtest/gtest.h" -#pragma warning(pop) - namespace sandbox { class TargetProcess; @@ -60,8 +57,10 @@ struct DllInterceptionData; // class InterceptionManager { // The unit test will access private members. - FRIEND_TEST(InterceptionManagerTest, BufferLayout1); - FRIEND_TEST(InterceptionManagerTest, BufferLayout2); + // Allow tests to be marked DISABLED_. Note that FLAKY_ and FAILS_ prefixes + // do not work with sandbox tests. + FRIEND_TEST_ALL_PREFIXES(InterceptionManagerTest, BufferLayout1); + FRIEND_TEST_ALL_PREFIXES(InterceptionManagerTest, BufferLayout2); public: // An interception manager performs interceptions on a given child process. diff --git a/sandbox/src/sharedmem_ipc_server.h b/sandbox/src/sharedmem_ipc_server.h index 7d55157..568d8ed 100644 --- a/sandbox/src/sharedmem_ipc_server.h +++ b/sandbox/src/sharedmem_ipc_server.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -8,12 +8,11 @@ #include <list> #include "base/basictypes.h" +#include "base/gtest_prod_util.h" #include "sandbox/src/crosscall_params.h" #include "sandbox/src/crosscall_server.h" #include "sandbox/src/sharedmem_ipc_client.h" -#include "testing/gtest/include/gtest/gtest_prod.h" - // IPC transport implementation that uses shared memory. // This is the server side // @@ -53,7 +52,9 @@ class SharedMemIPCServer { bool Init(void* shared_mem, size_t shared_size, size_t channel_size); private: - FRIEND_TEST(IPCTest, SharedMemServerTests); + // Allow tests to be marked DISABLED_. Note that FLAKY_ and FAILS_ prefixes + // do not work with sandbox tests. + FRIEND_TEST_ALL_PREFIXES(IPCTest, SharedMemServerTests); // When an event fires (IPC request). A thread from the ThreadProvider // will call this function. The context parameter should be the same as // provided when ThreadProvider::RegisterWait was called. |