summaryrefslogtreecommitdiffstats
path: root/sandbox/src/interception.h
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/src/interception.h')
-rw-r--r--sandbox/src/interception.h13
1 files changed, 6 insertions, 7 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.