summaryrefslogtreecommitdiffstats
path: root/media/base/mock_callback.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/mock_callback.h')
-rw-r--r--media/base/mock_callback.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/media/base/mock_callback.h b/media/base/mock_callback.h
index 6d50844..00d8276 100644
--- a/media/base/mock_callback.h
+++ b/media/base/mock_callback.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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.
@@ -17,8 +17,12 @@ namespace media {
class MockClosure : public base::RefCountedThreadSafe<MockClosure> {
public:
MockClosure();
- virtual ~MockClosure();
MOCK_METHOD0(Run, void());
+
+ protected:
+ friend class base::RefCountedThreadSafe<MockClosure>;
+ virtual ~MockClosure();
+
private:
DISALLOW_COPY_AND_ASSIGN(MockClosure);
};