OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // A mock of talk_base::Task. | 5 // A mock of talk_base::Task. |
6 | 6 |
7 #ifndef JINGLE_GLUE_MOCK_TASK_H_ | 7 #ifndef JINGLE_GLUE_MOCK_TASK_H_ |
8 #define JINGLE_GLUE_MOCK_TASK_H_ | 8 #define JINGLE_GLUE_MOCK_TASK_H_ |
9 | 9 |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 #include "third_party/libjingle/source/talk/base/task.h" | 11 #include "third_party/libjingle/source/talk/base/task.h" |
12 | 12 |
13 namespace jingle_glue { | 13 namespace jingle_glue { |
14 | 14 |
15 class MockTask : public talk_base::Task { | 15 class MockTask : public talk_base::Task { |
16 public: | 16 public: |
17 MockTask(TaskParent* parent); | 17 explicit MockTask(TaskParent* parent); |
18 | 18 |
19 virtual ~MockTask(); | 19 virtual ~MockTask(); |
20 | 20 |
21 MOCK_METHOD0(ProcessStart, int()); | 21 MOCK_METHOD0(ProcessStart, int()); |
22 }; | 22 }; |
23 | 23 |
24 } // namespace jingle_glue | 24 } // namespace jingle_glue |
25 | 25 |
26 #endif // JINGLE_GLUE_MOCK_TASK_H_ | 26 #endif // JINGLE_GLUE_MOCK_TASK_H_ |
OLD | NEW |