/work/obj-fuzz/dist/include/gmock/gmock-spec-builders.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Copyright 2007, Google Inc. |
2 | | // All rights reserved. |
3 | | // |
4 | | // Redistribution and use in source and binary forms, with or without |
5 | | // modification, are permitted provided that the following conditions are |
6 | | // met: |
7 | | // |
8 | | // * Redistributions of source code must retain the above copyright |
9 | | // notice, this list of conditions and the following disclaimer. |
10 | | // * Redistributions in binary form must reproduce the above |
11 | | // copyright notice, this list of conditions and the following disclaimer |
12 | | // in the documentation and/or other materials provided with the |
13 | | // distribution. |
14 | | // * Neither the name of Google Inc. nor the names of its |
15 | | // contributors may be used to endorse or promote products derived from |
16 | | // this software without specific prior written permission. |
17 | | // |
18 | | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
19 | | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
20 | | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
21 | | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
22 | | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
23 | | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
24 | | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 | | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 | | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 | | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 | | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 | | // |
30 | | // Author: wan@google.com (Zhanyong Wan) |
31 | | |
32 | | // Google Mock - a framework for writing C++ mock classes. |
33 | | // |
34 | | // This file implements the ON_CALL() and EXPECT_CALL() macros. |
35 | | // |
36 | | // A user can use the ON_CALL() macro to specify the default action of |
37 | | // a mock method. The syntax is: |
38 | | // |
39 | | // ON_CALL(mock_object, Method(argument-matchers)) |
40 | | // .With(multi-argument-matcher) |
41 | | // .WillByDefault(action); |
42 | | // |
43 | | // where the .With() clause is optional. |
44 | | // |
45 | | // A user can use the EXPECT_CALL() macro to specify an expectation on |
46 | | // a mock method. The syntax is: |
47 | | // |
48 | | // EXPECT_CALL(mock_object, Method(argument-matchers)) |
49 | | // .With(multi-argument-matchers) |
50 | | // .Times(cardinality) |
51 | | // .InSequence(sequences) |
52 | | // .After(expectations) |
53 | | // .WillOnce(action) |
54 | | // .WillRepeatedly(action) |
55 | | // .RetiresOnSaturation(); |
56 | | // |
57 | | // where all clauses are optional, and .InSequence()/.After()/ |
58 | | // .WillOnce() can appear any number of times. |
59 | | |
60 | | #ifndef GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_ |
61 | | #define GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_ |
62 | | |
63 | | #include <map> |
64 | | #include <set> |
65 | | #include <sstream> |
66 | | #include <string> |
67 | | #include <vector> |
68 | | |
69 | | #if GTEST_HAS_EXCEPTIONS |
70 | | # include <stdexcept> // NOLINT |
71 | | #endif |
72 | | |
73 | | #include "gmock/gmock-actions.h" |
74 | | #include "gmock/gmock-cardinalities.h" |
75 | | #include "gmock/gmock-matchers.h" |
76 | | #include "gmock/internal/gmock-internal-utils.h" |
77 | | #include "gmock/internal/gmock-port.h" |
78 | | #include "gtest/gtest.h" |
79 | | |
80 | | namespace testing { |
81 | | |
82 | | // An abstract handle of an expectation. |
83 | | class Expectation; |
84 | | |
85 | | // A set of expectation handles. |
86 | | class ExpectationSet; |
87 | | |
88 | | // Anything inside the 'internal' namespace IS INTERNAL IMPLEMENTATION |
89 | | // and MUST NOT BE USED IN USER CODE!!! |
90 | | namespace internal { |
91 | | |
92 | | // Implements a mock function. |
93 | | template <typename F> class FunctionMocker; |
94 | | |
95 | | // Base class for expectations. |
96 | | class ExpectationBase; |
97 | | |
98 | | // Implements an expectation. |
99 | | template <typename F> class TypedExpectation; |
100 | | |
101 | | // Helper class for testing the Expectation class template. |
102 | | class ExpectationTester; |
103 | | |
104 | | // Base class for function mockers. |
105 | | template <typename F> class FunctionMockerBase; |
106 | | |
107 | | // Protects the mock object registry (in class Mock), all function |
108 | | // mockers, and all expectations. |
109 | | // |
110 | | // The reason we don't use more fine-grained protection is: when a |
111 | | // mock function Foo() is called, it needs to consult its expectations |
112 | | // to see which one should be picked. If another thread is allowed to |
113 | | // call a mock function (either Foo() or a different one) at the same |
114 | | // time, it could affect the "retired" attributes of Foo()'s |
115 | | // expectations when InSequence() is used, and thus affect which |
116 | | // expectation gets picked. Therefore, we sequence all mock function |
117 | | // calls to ensure the integrity of the mock objects' states. |
118 | | GTEST_API_ GTEST_DECLARE_STATIC_MUTEX_(g_gmock_mutex); |
119 | | |
120 | | // Untyped base class for ActionResultHolder<R>. |
121 | | class UntypedActionResultHolderBase; |
122 | | |
123 | | // Abstract base class of FunctionMockerBase. This is the |
124 | | // type-agnostic part of the function mocker interface. Its pure |
125 | | // virtual methods are implemented by FunctionMockerBase. |
126 | | class GTEST_API_ UntypedFunctionMockerBase { |
127 | | public: |
128 | | UntypedFunctionMockerBase(); |
129 | | virtual ~UntypedFunctionMockerBase(); |
130 | | |
131 | | // Verifies that all expectations on this mock function have been |
132 | | // satisfied. Reports one or more Google Test non-fatal failures |
133 | | // and returns false if not. |
134 | | bool VerifyAndClearExpectationsLocked() |
135 | | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex); |
136 | | |
137 | | // Clears the ON_CALL()s set on this mock function. |
138 | | virtual void ClearDefaultActionsLocked() |
139 | | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) = 0; |
140 | | |
141 | | // In all of the following Untyped* functions, it's the caller's |
142 | | // responsibility to guarantee the correctness of the arguments' |
143 | | // types. |
144 | | |
145 | | // Performs the default action with the given arguments and returns |
146 | | // the action's result. The call description string will be used in |
147 | | // the error message to describe the call in the case the default |
148 | | // action fails. |
149 | | // L = * |
150 | | virtual UntypedActionResultHolderBase* UntypedPerformDefaultAction( |
151 | | const void* untyped_args, |
152 | | const string& call_description) const = 0; |
153 | | |
154 | | // Performs the given action with the given arguments and returns |
155 | | // the action's result. |
156 | | // L = * |
157 | | virtual UntypedActionResultHolderBase* UntypedPerformAction( |
158 | | const void* untyped_action, |
159 | | const void* untyped_args) const = 0; |
160 | | |
161 | | // Writes a message that the call is uninteresting (i.e. neither |
162 | | // explicitly expected nor explicitly unexpected) to the given |
163 | | // ostream. |
164 | | virtual void UntypedDescribeUninterestingCall( |
165 | | const void* untyped_args, |
166 | | ::std::ostream* os) const |
167 | | GTEST_LOCK_EXCLUDED_(g_gmock_mutex) = 0; |
168 | | |
169 | | // Returns the expectation that matches the given function arguments |
170 | | // (or NULL is there's no match); when a match is found, |
171 | | // untyped_action is set to point to the action that should be |
172 | | // performed (or NULL if the action is "do default"), and |
173 | | // is_excessive is modified to indicate whether the call exceeds the |
174 | | // expected number. |
175 | | virtual const ExpectationBase* UntypedFindMatchingExpectation( |
176 | | const void* untyped_args, |
177 | | const void** untyped_action, bool* is_excessive, |
178 | | ::std::ostream* what, ::std::ostream* why) |
179 | | GTEST_LOCK_EXCLUDED_(g_gmock_mutex) = 0; |
180 | | |
181 | | // Prints the given function arguments to the ostream. |
182 | | virtual void UntypedPrintArgs(const void* untyped_args, |
183 | | ::std::ostream* os) const = 0; |
184 | | |
185 | | // Sets the mock object this mock method belongs to, and registers |
186 | | // this information in the global mock registry. Will be called |
187 | | // whenever an EXPECT_CALL() or ON_CALL() is executed on this mock |
188 | | // method. |
189 | | // TODO(wan@google.com): rename to SetAndRegisterOwner(). |
190 | | void RegisterOwner(const void* mock_obj) |
191 | | GTEST_LOCK_EXCLUDED_(g_gmock_mutex); |
192 | | |
193 | | // Sets the mock object this mock method belongs to, and sets the |
194 | | // name of the mock function. Will be called upon each invocation |
195 | | // of this mock function. |
196 | | void SetOwnerAndName(const void* mock_obj, const char* name) |
197 | | GTEST_LOCK_EXCLUDED_(g_gmock_mutex); |
198 | | |
199 | | // Returns the mock object this mock method belongs to. Must be |
200 | | // called after RegisterOwner() or SetOwnerAndName() has been |
201 | | // called. |
202 | | const void* MockObject() const |
203 | | GTEST_LOCK_EXCLUDED_(g_gmock_mutex); |
204 | | |
205 | | // Returns the name of this mock method. Must be called after |
206 | | // SetOwnerAndName() has been called. |
207 | | const char* Name() const |
208 | | GTEST_LOCK_EXCLUDED_(g_gmock_mutex); |
209 | | |
210 | | // Returns the result of invoking this mock function with the given |
211 | | // arguments. This function can be safely called from multiple |
212 | | // threads concurrently. The caller is responsible for deleting the |
213 | | // result. |
214 | | UntypedActionResultHolderBase* UntypedInvokeWith( |
215 | | const void* untyped_args) |
216 | | GTEST_LOCK_EXCLUDED_(g_gmock_mutex); |
217 | | |
218 | | protected: |
219 | | typedef std::vector<const void*> UntypedOnCallSpecs; |
220 | | |
221 | | typedef std::vector<internal::linked_ptr<ExpectationBase> > |
222 | | UntypedExpectations; |
223 | | |
224 | | // Returns an Expectation object that references and co-owns exp, |
225 | | // which must be an expectation on this mock function. |
226 | | Expectation GetHandleOf(ExpectationBase* exp); |
227 | | |
228 | | // Address of the mock object this mock method belongs to. Only |
229 | | // valid after this mock method has been called or |
230 | | // ON_CALL/EXPECT_CALL has been invoked on it. |
231 | | const void* mock_obj_; // Protected by g_gmock_mutex. |
232 | | |
233 | | // Name of the function being mocked. Only valid after this mock |
234 | | // method has been called. |
235 | | const char* name_; // Protected by g_gmock_mutex. |
236 | | |
237 | | // All default action specs for this function mocker. |
238 | | UntypedOnCallSpecs untyped_on_call_specs_; |
239 | | |
240 | | // All expectations for this function mocker. |
241 | | UntypedExpectations untyped_expectations_; |
242 | | }; // class UntypedFunctionMockerBase |
243 | | |
244 | | // Untyped base class for OnCallSpec<F>. |
245 | | class UntypedOnCallSpecBase { |
246 | | public: |
247 | | // The arguments are the location of the ON_CALL() statement. |
248 | | UntypedOnCallSpecBase(const char* a_file, int a_line) |
249 | 0 | : file_(a_file), line_(a_line), last_clause_(kNone) {} |
250 | | |
251 | | // Where in the source file was the default action spec defined? |
252 | 0 | const char* file() const { return file_; } |
253 | 0 | int line() const { return line_; } |
254 | | |
255 | | protected: |
256 | | // Gives each clause in the ON_CALL() statement a name. |
257 | | enum Clause { |
258 | | // Do not change the order of the enum members! The run-time |
259 | | // syntax checking relies on it. |
260 | | kNone, |
261 | | kWith, |
262 | | kWillByDefault |
263 | | }; |
264 | | |
265 | | // Asserts that the ON_CALL() statement has a certain property. |
266 | 0 | void AssertSpecProperty(bool property, const string& failure_message) const { |
267 | 0 | Assert(property, file_, line_, failure_message); |
268 | 0 | } |
269 | | |
270 | | // Expects that the ON_CALL() statement has a certain property. |
271 | 0 | void ExpectSpecProperty(bool property, const string& failure_message) const { |
272 | 0 | Expect(property, file_, line_, failure_message); |
273 | 0 | } |
274 | | |
275 | | const char* file_; |
276 | | int line_; |
277 | | |
278 | | // The last clause in the ON_CALL() statement as seen so far. |
279 | | // Initially kNone and changes as the statement is parsed. |
280 | | Clause last_clause_; |
281 | | }; // class UntypedOnCallSpecBase |
282 | | |
283 | | // This template class implements an ON_CALL spec. |
284 | | template <typename F> |
285 | | class OnCallSpec : public UntypedOnCallSpecBase { |
286 | | public: |
287 | | typedef typename Function<F>::ArgumentTuple ArgumentTuple; |
288 | | typedef typename Function<F>::ArgumentMatcherTuple ArgumentMatcherTuple; |
289 | | |
290 | | // Constructs an OnCallSpec object from the information inside |
291 | | // the parenthesis of an ON_CALL() statement. |
292 | | OnCallSpec(const char* a_file, int a_line, |
293 | | const ArgumentMatcherTuple& matchers) |
294 | | : UntypedOnCallSpecBase(a_file, a_line), |
295 | | matchers_(matchers), |
296 | | // By default, extra_matcher_ should match anything. However, |
297 | | // we cannot initialize it with _ as that triggers a compiler |
298 | | // bug in Symbian's C++ compiler (cannot decide between two |
299 | | // overloaded constructors of Matcher<const ArgumentTuple&>). |
300 | | extra_matcher_(A<const ArgumentTuple&>()) { |
301 | | } |
302 | | |
303 | | // Implements the .With() clause. |
304 | | OnCallSpec& With(const Matcher<const ArgumentTuple&>& m) { |
305 | | // Makes sure this is called at most once. |
306 | | ExpectSpecProperty(last_clause_ < kWith, |
307 | | ".With() cannot appear " |
308 | | "more than once in an ON_CALL()."); |
309 | | last_clause_ = kWith; |
310 | | |
311 | | extra_matcher_ = m; |
312 | | return *this; |
313 | | } |
314 | | |
315 | | // Implements the .WillByDefault() clause. |
316 | | OnCallSpec& WillByDefault(const Action<F>& action) { |
317 | | ExpectSpecProperty(last_clause_ < kWillByDefault, |
318 | | ".WillByDefault() must appear " |
319 | | "exactly once in an ON_CALL()."); |
320 | | last_clause_ = kWillByDefault; |
321 | | |
322 | | ExpectSpecProperty(!action.IsDoDefault(), |
323 | | "DoDefault() cannot be used in ON_CALL()."); |
324 | | action_ = action; |
325 | | return *this; |
326 | | } |
327 | | |
328 | | // Returns true iff the given arguments match the matchers. |
329 | 0 | bool Matches(const ArgumentTuple& args) const { |
330 | 0 | return TupleMatches(matchers_, args) && extra_matcher_.Matches(args); |
331 | 0 | } Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::SchedulerGroup::ValidationType)>::Matches(std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void ()>::Matches(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::layers::FrameMetrics const&)>::Matches(std::__1::tuple<mozilla::layers::FrameMetrics const&> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::Matches(std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long const&, unsigned int const&)>::Matches(std::__1::tuple<unsigned long const&, unsigned int const&> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::Matches(std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::Matches(std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::Matches(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long const&)>::Matches(std::__1::tuple<unsigned long const&> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::layers::ScrollableLayerGuid const&)>::Matches(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::Matches(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) const Unexecuted instantiation: testing::internal::OnCallSpec<nsresult (nsPoint const&, mozilla::EventClassID)>::Matches(std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<nsresult (nsPoint const&)>::Matches(std::__1::tuple<nsPoint const&> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<nsresult ()>::Matches(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<mozilla::AccessibleCaretManager::CaretMode ()>::Matches(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::dom::CaretChangedReason)>::Matches(std::__1::tuple<mozilla::dom::CaretChangedReason> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<bool (nsINode*)>::Matches(std::__1::tuple<nsINode*> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::Matches(std::__1::tuple<nsIFrame*, int> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::Matches(std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long long, int)>::Matches(std::__1::tuple<unsigned long long, int> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long long, int, int, long)>::Matches(std::__1::tuple<unsigned long long, int, int, long> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long long, int, int)>::Matches(std::__1::tuple<unsigned long long, int, int> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::Matches(std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<bool ()>::Matches(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long long, bool)>::Matches(std::__1::tuple<unsigned long long, bool> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::Matches(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long)>::Matches(std::__1::tuple<unsigned long long> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long, unsigned long long)>::Matches(std::__1::tuple<unsigned long long, unsigned long long> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long, int)>::Matches(std::__1::tuple<unsigned long long, int> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::Matches(std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long, unsigned char)>::Matches(std::__1::tuple<unsigned long long, unsigned char> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::Matches(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long, unsigned long)>::Matches(std::__1::tuple<unsigned long, unsigned long> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long, int, lul::LExprHow, short, long)>::Matches(std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<unsigned int (lul::PfxInstr)>::Matches(std::__1::tuple<lul::PfxInstr> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::Matches(std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::Matches(std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&) const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long)>::Matches(std::__1::tuple<unsigned long> const&) const |
332 | | |
333 | | // Returns the action specified by the user. |
334 | 0 | const Action<F>& GetAction() const { |
335 | 0 | AssertSpecProperty(last_clause_ == kWillByDefault, |
336 | 0 | ".WillByDefault() must appear exactly " |
337 | 0 | "once in an ON_CALL()."); |
338 | 0 | return action_; |
339 | 0 | } Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::SchedulerGroup::ValidationType)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void ()>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::layers::FrameMetrics const&)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long const&, unsigned int const&)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long const&)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::layers::ScrollableLayerGuid const&)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<nsresult (nsPoint const&, mozilla::EventClassID)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<nsresult (nsPoint const&)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<nsresult ()>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<mozilla::AccessibleCaretManager::CaretMode ()>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (mozilla::dom::CaretChangedReason)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<bool (nsINode*)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long long, int)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long long, int, int, long)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long long, int, int)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<bool ()>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long long, bool)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long, unsigned long long)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long, int)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long, unsigned char)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long, unsigned long)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<void (unsigned long, int, lul::LExprHow, short, long)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<unsigned int (lul::PfxInstr)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::GetAction() const Unexecuted instantiation: testing::internal::OnCallSpec<bool (unsigned long)>::GetAction() const |
340 | | |
341 | | private: |
342 | | // The information in statement |
343 | | // |
344 | | // ON_CALL(mock_object, Method(matchers)) |
345 | | // .With(multi-argument-matcher) |
346 | | // .WillByDefault(action); |
347 | | // |
348 | | // is recorded in the data members like this: |
349 | | // |
350 | | // source file that contains the statement => file_ |
351 | | // line number of the statement => line_ |
352 | | // matchers => matchers_ |
353 | | // multi-argument-matcher => extra_matcher_ |
354 | | // action => action_ |
355 | | ArgumentMatcherTuple matchers_; |
356 | | Matcher<const ArgumentTuple&> extra_matcher_; |
357 | | Action<F> action_; |
358 | | }; // class OnCallSpec |
359 | | |
360 | | // Possible reactions on uninteresting calls. |
361 | | enum CallReaction { |
362 | | kAllow, |
363 | | kWarn, |
364 | | kFail, |
365 | | kDefault = kWarn // By default, warn about uninteresting calls. |
366 | | }; |
367 | | |
368 | | } // namespace internal |
369 | | |
370 | | // Utilities for manipulating mock objects. |
371 | | class GTEST_API_ Mock { |
372 | | public: |
373 | | // The following public methods can be called concurrently. |
374 | | |
375 | | // Tells Google Mock to ignore mock_obj when checking for leaked |
376 | | // mock objects. |
377 | | static void AllowLeak(const void* mock_obj) |
378 | | GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); |
379 | | |
380 | | // Verifies and clears all expectations on the given mock object. |
381 | | // If the expectations aren't satisfied, generates one or more |
382 | | // Google Test non-fatal failures and returns false. |
383 | | static bool VerifyAndClearExpectations(void* mock_obj) |
384 | | GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); |
385 | | |
386 | | // Verifies all expectations on the given mock object and clears its |
387 | | // default actions and expectations. Returns true iff the |
388 | | // verification was successful. |
389 | | static bool VerifyAndClear(void* mock_obj) |
390 | | GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); |
391 | | |
392 | | private: |
393 | | friend class internal::UntypedFunctionMockerBase; |
394 | | |
395 | | // Needed for a function mocker to register itself (so that we know |
396 | | // how to clear a mock object). |
397 | | template <typename F> |
398 | | friend class internal::FunctionMockerBase; |
399 | | |
400 | | template <typename M> |
401 | | friend class NiceMock; |
402 | | |
403 | | template <typename M> |
404 | | friend class NaggyMock; |
405 | | |
406 | | template <typename M> |
407 | | friend class StrictMock; |
408 | | |
409 | | // Tells Google Mock to allow uninteresting calls on the given mock |
410 | | // object. |
411 | | static void AllowUninterestingCalls(const void* mock_obj) |
412 | | GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); |
413 | | |
414 | | // Tells Google Mock to warn the user about uninteresting calls on |
415 | | // the given mock object. |
416 | | static void WarnUninterestingCalls(const void* mock_obj) |
417 | | GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); |
418 | | |
419 | | // Tells Google Mock to fail uninteresting calls on the given mock |
420 | | // object. |
421 | | static void FailUninterestingCalls(const void* mock_obj) |
422 | | GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); |
423 | | |
424 | | // Tells Google Mock the given mock object is being destroyed and |
425 | | // its entry in the call-reaction table should be removed. |
426 | | static void UnregisterCallReaction(const void* mock_obj) |
427 | | GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); |
428 | | |
429 | | // Returns the reaction Google Mock will have on uninteresting calls |
430 | | // made on the given mock object. |
431 | | static internal::CallReaction GetReactionOnUninterestingCalls( |
432 | | const void* mock_obj) |
433 | | GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); |
434 | | |
435 | | // Verifies that all expectations on the given mock object have been |
436 | | // satisfied. Reports one or more Google Test non-fatal failures |
437 | | // and returns false if not. |
438 | | static bool VerifyAndClearExpectationsLocked(void* mock_obj) |
439 | | GTEST_EXCLUSIVE_LOCK_REQUIRED_(internal::g_gmock_mutex); |
440 | | |
441 | | // Clears all ON_CALL()s set on the given mock object. |
442 | | static void ClearDefaultActionsLocked(void* mock_obj) |
443 | | GTEST_EXCLUSIVE_LOCK_REQUIRED_(internal::g_gmock_mutex); |
444 | | |
445 | | // Registers a mock object and a mock method it owns. |
446 | | static void Register( |
447 | | const void* mock_obj, |
448 | | internal::UntypedFunctionMockerBase* mocker) |
449 | | GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); |
450 | | |
451 | | // Tells Google Mock where in the source code mock_obj is used in an |
452 | | // ON_CALL or EXPECT_CALL. In case mock_obj is leaked, this |
453 | | // information helps the user identify which object it is. |
454 | | static void RegisterUseByOnCallOrExpectCall( |
455 | | const void* mock_obj, const char* file, int line) |
456 | | GTEST_LOCK_EXCLUDED_(internal::g_gmock_mutex); |
457 | | |
458 | | // Unregisters a mock method; removes the owning mock object from |
459 | | // the registry when the last mock method associated with it has |
460 | | // been unregistered. This is called only in the destructor of |
461 | | // FunctionMockerBase. |
462 | | static void UnregisterLocked(internal::UntypedFunctionMockerBase* mocker) |
463 | | GTEST_EXCLUSIVE_LOCK_REQUIRED_(internal::g_gmock_mutex); |
464 | | }; // class Mock |
465 | | |
466 | | // An abstract handle of an expectation. Useful in the .After() |
467 | | // clause of EXPECT_CALL() for setting the (partial) order of |
468 | | // expectations. The syntax: |
469 | | // |
470 | | // Expectation e1 = EXPECT_CALL(...)...; |
471 | | // EXPECT_CALL(...).After(e1)...; |
472 | | // |
473 | | // sets two expectations where the latter can only be matched after |
474 | | // the former has been satisfied. |
475 | | // |
476 | | // Notes: |
477 | | // - This class is copyable and has value semantics. |
478 | | // - Constness is shallow: a const Expectation object itself cannot |
479 | | // be modified, but the mutable methods of the ExpectationBase |
480 | | // object it references can be called via expectation_base(). |
481 | | // - The constructors and destructor are defined out-of-line because |
482 | | // the Symbian WINSCW compiler wants to otherwise instantiate them |
483 | | // when it sees this class definition, at which point it doesn't have |
484 | | // ExpectationBase available yet, leading to incorrect destruction |
485 | | // in the linked_ptr (or compilation errors if using a checking |
486 | | // linked_ptr). |
487 | | class GTEST_API_ Expectation { |
488 | | public: |
489 | | // Constructs a null object that doesn't reference any expectation. |
490 | | Expectation(); |
491 | | |
492 | | ~Expectation(); |
493 | | |
494 | | // This single-argument ctor must not be explicit, in order to support the |
495 | | // Expectation e = EXPECT_CALL(...); |
496 | | // syntax. |
497 | | // |
498 | | // A TypedExpectation object stores its pre-requisites as |
499 | | // Expectation objects, and needs to call the non-const Retire() |
500 | | // method on the ExpectationBase objects they reference. Therefore |
501 | | // Expectation must receive a *non-const* reference to the |
502 | | // ExpectationBase object. |
503 | | Expectation(internal::ExpectationBase& exp); // NOLINT |
504 | | |
505 | | // The compiler-generated copy ctor and operator= work exactly as |
506 | | // intended, so we don't need to define our own. |
507 | | |
508 | | // Returns true iff rhs references the same expectation as this object does. |
509 | | bool operator==(const Expectation& rhs) const { |
510 | | return expectation_base_ == rhs.expectation_base_; |
511 | | } |
512 | | |
513 | | bool operator!=(const Expectation& rhs) const { return !(*this == rhs); } |
514 | | |
515 | | private: |
516 | | friend class ExpectationSet; |
517 | | friend class Sequence; |
518 | | friend class ::testing::internal::ExpectationBase; |
519 | | friend class ::testing::internal::UntypedFunctionMockerBase; |
520 | | |
521 | | template <typename F> |
522 | | friend class ::testing::internal::FunctionMockerBase; |
523 | | |
524 | | template <typename F> |
525 | | friend class ::testing::internal::TypedExpectation; |
526 | | |
527 | | // This comparator is needed for putting Expectation objects into a set. |
528 | | class Less { |
529 | | public: |
530 | | bool operator()(const Expectation& lhs, const Expectation& rhs) const { |
531 | | return lhs.expectation_base_.get() < rhs.expectation_base_.get(); |
532 | | } |
533 | | }; |
534 | | |
535 | | typedef ::std::set<Expectation, Less> Set; |
536 | | |
537 | | Expectation( |
538 | | const internal::linked_ptr<internal::ExpectationBase>& expectation_base); |
539 | | |
540 | | // Returns the expectation this object references. |
541 | | const internal::linked_ptr<internal::ExpectationBase>& |
542 | 0 | expectation_base() const { |
543 | 0 | return expectation_base_; |
544 | 0 | } |
545 | | |
546 | | // A linked_ptr that co-owns the expectation this handle references. |
547 | | internal::linked_ptr<internal::ExpectationBase> expectation_base_; |
548 | | }; |
549 | | |
550 | | // A set of expectation handles. Useful in the .After() clause of |
551 | | // EXPECT_CALL() for setting the (partial) order of expectations. The |
552 | | // syntax: |
553 | | // |
554 | | // ExpectationSet es; |
555 | | // es += EXPECT_CALL(...)...; |
556 | | // es += EXPECT_CALL(...)...; |
557 | | // EXPECT_CALL(...).After(es)...; |
558 | | // |
559 | | // sets three expectations where the last one can only be matched |
560 | | // after the first two have both been satisfied. |
561 | | // |
562 | | // This class is copyable and has value semantics. |
563 | | class ExpectationSet { |
564 | | public: |
565 | | // A bidirectional iterator that can read a const element in the set. |
566 | | typedef Expectation::Set::const_iterator const_iterator; |
567 | | |
568 | | // An object stored in the set. This is an alias of Expectation. |
569 | | typedef Expectation::Set::value_type value_type; |
570 | | |
571 | | // Constructs an empty set. |
572 | 0 | ExpectationSet() {} |
573 | | |
574 | | // This single-argument ctor must not be explicit, in order to support the |
575 | | // ExpectationSet es = EXPECT_CALL(...); |
576 | | // syntax. |
577 | 0 | ExpectationSet(internal::ExpectationBase& exp) { // NOLINT |
578 | 0 | *this += Expectation(exp); |
579 | 0 | } |
580 | | |
581 | | // This single-argument ctor implements implicit conversion from |
582 | | // Expectation and thus must not be explicit. This allows either an |
583 | | // Expectation or an ExpectationSet to be used in .After(). |
584 | 0 | ExpectationSet(const Expectation& e) { // NOLINT |
585 | 0 | *this += e; |
586 | 0 | } |
587 | | |
588 | | // The compiler-generator ctor and operator= works exactly as |
589 | | // intended, so we don't need to define our own. |
590 | | |
591 | | // Returns true iff rhs contains the same set of Expectation objects |
592 | | // as this does. |
593 | 0 | bool operator==(const ExpectationSet& rhs) const { |
594 | 0 | return expectations_ == rhs.expectations_; |
595 | 0 | } |
596 | | |
597 | 0 | bool operator!=(const ExpectationSet& rhs) const { return !(*this == rhs); } |
598 | | |
599 | | // Implements the syntax |
600 | | // expectation_set += EXPECT_CALL(...); |
601 | | ExpectationSet& operator+=(const Expectation& e) { |
602 | | expectations_.insert(e); |
603 | | return *this; |
604 | | } |
605 | | |
606 | 0 | int size() const { return static_cast<int>(expectations_.size()); } |
607 | | |
608 | 0 | const_iterator begin() const { return expectations_.begin(); } |
609 | 0 | const_iterator end() const { return expectations_.end(); } |
610 | | |
611 | | private: |
612 | | Expectation::Set expectations_; |
613 | | }; |
614 | | |
615 | | |
616 | | // Sequence objects are used by a user to specify the relative order |
617 | | // in which the expectations should match. They are copyable (we rely |
618 | | // on the compiler-defined copy constructor and assignment operator). |
619 | | class GTEST_API_ Sequence { |
620 | | public: |
621 | | // Constructs an empty sequence. |
622 | | Sequence() : last_expectation_(new Expectation) {} |
623 | | |
624 | | // Adds an expectation to this sequence. The caller must ensure |
625 | | // that no other thread is accessing this Sequence object. |
626 | | void AddExpectation(const Expectation& expectation) const; |
627 | | |
628 | | private: |
629 | | // The last expectation in this sequence. We use a linked_ptr here |
630 | | // because Sequence objects are copyable and we want the copies to |
631 | | // be aliases. The linked_ptr allows the copies to co-own and share |
632 | | // the same Expectation object. |
633 | | internal::linked_ptr<Expectation> last_expectation_; |
634 | | }; // class Sequence |
635 | | |
636 | | // An object of this type causes all EXPECT_CALL() statements |
637 | | // encountered in its scope to be put in an anonymous sequence. The |
638 | | // work is done in the constructor and destructor. You should only |
639 | | // create an InSequence object on the stack. |
640 | | // |
641 | | // The sole purpose for this class is to support easy definition of |
642 | | // sequential expectations, e.g. |
643 | | // |
644 | | // { |
645 | | // InSequence dummy; // The name of the object doesn't matter. |
646 | | // |
647 | | // // The following expectations must match in the order they appear. |
648 | | // EXPECT_CALL(a, Bar())...; |
649 | | // EXPECT_CALL(a, Baz())...; |
650 | | // ... |
651 | | // EXPECT_CALL(b, Xyz())...; |
652 | | // } |
653 | | // |
654 | | // You can create InSequence objects in multiple threads, as long as |
655 | | // they are used to affect different mock objects. The idea is that |
656 | | // each thread can create and set up its own mocks as if it's the only |
657 | | // thread. However, for clarity of your tests we recommend you to set |
658 | | // up mocks in the main thread unless you have a good reason not to do |
659 | | // so. |
660 | | class GTEST_API_ InSequence { |
661 | | public: |
662 | | InSequence(); |
663 | | ~InSequence(); |
664 | | private: |
665 | | bool sequence_created_; |
666 | | |
667 | | GTEST_DISALLOW_COPY_AND_ASSIGN_(InSequence); // NOLINT |
668 | | } GTEST_ATTRIBUTE_UNUSED_; |
669 | | |
670 | | namespace internal { |
671 | | |
672 | | // Points to the implicit sequence introduced by a living InSequence |
673 | | // object (if any) in the current thread or NULL. |
674 | | GTEST_API_ extern ThreadLocal<Sequence*> g_gmock_implicit_sequence; |
675 | | |
676 | | // Base class for implementing expectations. |
677 | | // |
678 | | // There are two reasons for having a type-agnostic base class for |
679 | | // Expectation: |
680 | | // |
681 | | // 1. We need to store collections of expectations of different |
682 | | // types (e.g. all pre-requisites of a particular expectation, all |
683 | | // expectations in a sequence). Therefore these expectation objects |
684 | | // must share a common base class. |
685 | | // |
686 | | // 2. We can avoid binary code bloat by moving methods not depending |
687 | | // on the template argument of Expectation to the base class. |
688 | | // |
689 | | // This class is internal and mustn't be used by user code directly. |
690 | | class GTEST_API_ ExpectationBase { |
691 | | public: |
692 | | // source_text is the EXPECT_CALL(...) source that created this Expectation. |
693 | | ExpectationBase(const char* file, int line, const string& source_text); |
694 | | |
695 | | virtual ~ExpectationBase(); |
696 | | |
697 | | // Where in the source file was the expectation spec defined? |
698 | 0 | const char* file() const { return file_; } |
699 | 0 | int line() const { return line_; } |
700 | 0 | const char* source_text() const { return source_text_.c_str(); } |
701 | | // Returns the cardinality specified in the expectation spec. |
702 | 0 | const Cardinality& cardinality() const { return cardinality_; } |
703 | | |
704 | | // Describes the source file location of this expectation. |
705 | 0 | void DescribeLocationTo(::std::ostream* os) const { |
706 | 0 | *os << FormatFileLocation(file(), line()) << " "; |
707 | 0 | } |
708 | | |
709 | | // Describes how many times a function call matching this |
710 | | // expectation has occurred. |
711 | | void DescribeCallCountTo(::std::ostream* os) const |
712 | | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex); |
713 | | |
714 | | // If this mock method has an extra matcher (i.e. .With(matcher)), |
715 | | // describes it to the ostream. |
716 | | virtual void MaybeDescribeExtraMatcherTo(::std::ostream* os) = 0; |
717 | | |
718 | | protected: |
719 | | friend class ::testing::Expectation; |
720 | | friend class UntypedFunctionMockerBase; |
721 | | |
722 | | enum Clause { |
723 | | // Don't change the order of the enum members! |
724 | | kNone, |
725 | | kWith, |
726 | | kTimes, |
727 | | kInSequence, |
728 | | kAfter, |
729 | | kWillOnce, |
730 | | kWillRepeatedly, |
731 | | kRetiresOnSaturation |
732 | | }; |
733 | | |
734 | | typedef std::vector<const void*> UntypedActions; |
735 | | |
736 | | // Returns an Expectation object that references and co-owns this |
737 | | // expectation. |
738 | | virtual Expectation GetHandle() = 0; |
739 | | |
740 | | // Asserts that the EXPECT_CALL() statement has the given property. |
741 | 0 | void AssertSpecProperty(bool property, const string& failure_message) const { |
742 | 0 | Assert(property, file_, line_, failure_message); |
743 | 0 | } |
744 | | |
745 | | // Expects that the EXPECT_CALL() statement has the given property. |
746 | | void ExpectSpecProperty(bool property, const string& failure_message) const { |
747 | | Expect(property, file_, line_, failure_message); |
748 | | } |
749 | | |
750 | | // Explicitly specifies the cardinality of this expectation. Used |
751 | | // by the subclasses to implement the .Times() clause. |
752 | | void SpecifyCardinality(const Cardinality& cardinality); |
753 | | |
754 | | // Returns true iff the user specified the cardinality explicitly |
755 | | // using a .Times(). |
756 | 0 | bool cardinality_specified() const { return cardinality_specified_; } |
757 | | |
758 | | // Sets the cardinality of this expectation spec. |
759 | 0 | void set_cardinality(const Cardinality& a_cardinality) { |
760 | 0 | cardinality_ = a_cardinality; |
761 | 0 | } |
762 | | |
763 | | // The following group of methods should only be called after the |
764 | | // EXPECT_CALL() statement, and only when g_gmock_mutex is held by |
765 | | // the current thread. |
766 | | |
767 | | // Retires all pre-requisites of this expectation. |
768 | | void RetireAllPreRequisites() |
769 | | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex); |
770 | | |
771 | | // Returns true iff this expectation is retired. |
772 | | bool is_retired() const |
773 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
774 | 0 | g_gmock_mutex.AssertHeld(); |
775 | 0 | return retired_; |
776 | 0 | } |
777 | | |
778 | | // Retires this expectation. |
779 | | void Retire() |
780 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
781 | 0 | g_gmock_mutex.AssertHeld(); |
782 | 0 | retired_ = true; |
783 | 0 | } |
784 | | |
785 | | // Returns true iff this expectation is satisfied. |
786 | | bool IsSatisfied() const |
787 | | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
788 | | g_gmock_mutex.AssertHeld(); |
789 | | return cardinality().IsSatisfiedByCallCount(call_count_); |
790 | | } |
791 | | |
792 | | // Returns true iff this expectation is saturated. |
793 | | bool IsSaturated() const |
794 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
795 | 0 | g_gmock_mutex.AssertHeld(); |
796 | 0 | return cardinality().IsSaturatedByCallCount(call_count_); |
797 | 0 | } |
798 | | |
799 | | // Returns true iff this expectation is over-saturated. |
800 | | bool IsOverSaturated() const |
801 | | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
802 | | g_gmock_mutex.AssertHeld(); |
803 | | return cardinality().IsOverSaturatedByCallCount(call_count_); |
804 | | } |
805 | | |
806 | | // Returns true iff all pre-requisites of this expectation are satisfied. |
807 | | bool AllPrerequisitesAreSatisfied() const |
808 | | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex); |
809 | | |
810 | | // Adds unsatisfied pre-requisites of this expectation to 'result'. |
811 | | void FindUnsatisfiedPrerequisites(ExpectationSet* result) const |
812 | | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex); |
813 | | |
814 | | // Returns the number this expectation has been invoked. |
815 | | int call_count() const |
816 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
817 | 0 | g_gmock_mutex.AssertHeld(); |
818 | 0 | return call_count_; |
819 | 0 | } |
820 | | |
821 | | // Increments the number this expectation has been invoked. |
822 | | void IncrementCallCount() |
823 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
824 | 0 | g_gmock_mutex.AssertHeld(); |
825 | 0 | call_count_++; |
826 | 0 | } |
827 | | |
828 | | // Checks the action count (i.e. the number of WillOnce() and |
829 | | // WillRepeatedly() clauses) against the cardinality if this hasn't |
830 | | // been done before. Prints a warning if there are too many or too |
831 | | // few actions. |
832 | | void CheckActionCountIfNotDone() const |
833 | | GTEST_LOCK_EXCLUDED_(mutex_); |
834 | | |
835 | | friend class ::testing::Sequence; |
836 | | friend class ::testing::internal::ExpectationTester; |
837 | | |
838 | | template <typename Function> |
839 | | friend class TypedExpectation; |
840 | | |
841 | | // Implements the .Times() clause. |
842 | | void UntypedTimes(const Cardinality& a_cardinality); |
843 | | |
844 | | // This group of fields are part of the spec and won't change after |
845 | | // an EXPECT_CALL() statement finishes. |
846 | | const char* file_; // The file that contains the expectation. |
847 | | int line_; // The line number of the expectation. |
848 | | const string source_text_; // The EXPECT_CALL(...) source text. |
849 | | // True iff the cardinality is specified explicitly. |
850 | | bool cardinality_specified_; |
851 | | Cardinality cardinality_; // The cardinality of the expectation. |
852 | | // The immediate pre-requisites (i.e. expectations that must be |
853 | | // satisfied before this expectation can be matched) of this |
854 | | // expectation. We use linked_ptr in the set because we want an |
855 | | // Expectation object to be co-owned by its FunctionMocker and its |
856 | | // successors. This allows multiple mock objects to be deleted at |
857 | | // different times. |
858 | | ExpectationSet immediate_prerequisites_; |
859 | | |
860 | | // This group of fields are the current state of the expectation, |
861 | | // and can change as the mock function is called. |
862 | | int call_count_; // How many times this expectation has been invoked. |
863 | | bool retired_; // True iff this expectation has retired. |
864 | | UntypedActions untyped_actions_; |
865 | | bool extra_matcher_specified_; |
866 | | bool repeated_action_specified_; // True if a WillRepeatedly() was specified. |
867 | | bool retires_on_saturation_; |
868 | | Clause last_clause_; |
869 | | mutable bool action_count_checked_; // Under mutex_. |
870 | | mutable Mutex mutex_; // Protects action_count_checked_. |
871 | | |
872 | | GTEST_DISALLOW_ASSIGN_(ExpectationBase); |
873 | | }; // class ExpectationBase |
874 | | |
875 | | // Impements an expectation for the given function type. |
876 | | template <typename F> |
877 | | class TypedExpectation : public ExpectationBase { |
878 | | public: |
879 | | typedef typename Function<F>::ArgumentTuple ArgumentTuple; |
880 | | typedef typename Function<F>::ArgumentMatcherTuple ArgumentMatcherTuple; |
881 | | typedef typename Function<F>::Result Result; |
882 | | |
883 | | TypedExpectation(FunctionMockerBase<F>* owner, |
884 | | const char* a_file, int a_line, const string& a_source_text, |
885 | | const ArgumentMatcherTuple& m) |
886 | | : ExpectationBase(a_file, a_line, a_source_text), |
887 | | owner_(owner), |
888 | | matchers_(m), |
889 | | // By default, extra_matcher_ should match anything. However, |
890 | | // we cannot initialize it with _ as that triggers a compiler |
891 | | // bug in Symbian's C++ compiler (cannot decide between two |
892 | | // overloaded constructors of Matcher<const ArgumentTuple&>). |
893 | | extra_matcher_(A<const ArgumentTuple&>()), |
894 | 0 | repeated_action_(DoDefault()) {} Unexecuted instantiation: testing::internal::TypedExpectation<void ()>::TypedExpectation(testing::internal::FunctionMockerBase<void ()>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<> const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::FrameMetrics const&)>::TypedExpectation(testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<mozilla::layers::FrameMetrics const&> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::TypedExpectation(testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::TypedExpectation(testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<mozilla::layers::ScrollableLayerGuid const&>, testing::Matcher<mozilla::layers::GeckoContentController::APZStateChange>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::TypedExpectation(testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<mozilla::layers::GeckoContentController::TapType>, testing::Matcher<mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&>, testing::Matcher<unsigned short>, testing::Matcher<mozilla::layers::ScrollableLayerGuid const&>, testing::Matcher<unsigned long> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::TypedExpectation(testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<mozilla::PinchGestureInput::PinchGestureType>, testing::Matcher<mozilla::layers::ScrollableLayerGuid const&>, testing::Matcher<mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float> >, testing::Matcher<unsigned short> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&, mozilla::EventClassID)>::TypedExpectation(testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<nsPoint const&>, testing::Matcher<mozilla::EventClassID> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::TypedExpectation(testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<nsPoint const&> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::TypedExpectation(testing::internal::FunctionMockerBase<nsresult ()>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<> const&) Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::TypedExpectation(testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<nsIFrame*>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaretManager::CaretMode ()>::TypedExpectation(testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<> const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::dom::CaretChangedReason)>::TypedExpectation(testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<mozilla::dom::CaretChangedReason> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (nsINode*)>::TypedExpectation(testing::internal::FunctionMockerBase<bool (nsINode*)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<nsINode*> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned char)>::TypedExpectation(testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<unsigned char> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::TypedExpectation(testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<lul::CallFrameInfo::EntryKind>, testing::Matcher<unsigned long long> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::TypedExpectation(testing::internal::FunctionMockerBase<bool (unsigned long long, int)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::TypedExpectation(testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int>, testing::Matcher<int>, testing::Matcher<long> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::TypedExpectation(testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::TypedExpectation(testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int>, testing::Matcher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::TypedExpectation(testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<bool> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::TypedExpectation(testing::internal::FunctionMockerBase<bool ()>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<> const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::TypedExpectation(testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<lul::CallFrameInfo::EntryKind> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::TypedExpectation(testing::internal::FunctionMockerBase<void (unsigned long long)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::TypedExpectation(testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<unsigned long long> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::TypedExpectation(testing::internal::FunctionMockerBase<void (unsigned long long, int)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::TypedExpectation(testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::TypedExpectation(testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long>, testing::Matcher<unsigned long long>, testing::Matcher<unsigned long long>, testing::Matcher<unsigned char>, testing::Matcher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>, testing::Matcher<unsigned int> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<unsigned int (lul::PfxInstr)>::TypedExpectation(testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<lul::PfxInstr> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::TypedExpectation(testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<JS::ubi::Node const&>, testing::Matcher<mozilla::devtools::CoreDumpWriter::EdgePolicy> > const&) Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::TypedExpectation(testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>*, char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<mozilla::devtools::DeserializedEdge const&> > const&) |
895 | | |
896 | 0 | virtual ~TypedExpectation() { |
897 | 0 | // Check the validity of the action count if it hasn't been done |
898 | 0 | // yet (for example, if the expectation was never used). |
899 | 0 | CheckActionCountIfNotDone(); |
900 | 0 | for (UntypedActions::const_iterator it = untyped_actions_.begin(); |
901 | 0 | it != untyped_actions_.end(); ++it) { |
902 | 0 | delete static_cast<const Action<F>*>(*it); |
903 | 0 | } |
904 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<void ()>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::FrameMetrics const&)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&, mozilla::EventClassID)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaretManager::CaretMode ()>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::dom::CaretChangedReason)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<bool (nsINode*)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned char)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<unsigned int (lul::PfxInstr)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::~TypedExpectation() Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::~TypedExpectation() |
905 | | |
906 | | // Implements the .With() clause. |
907 | | TypedExpectation& With(const Matcher<const ArgumentTuple&>& m) { |
908 | | if (last_clause_ == kWith) { |
909 | | ExpectSpecProperty(false, |
910 | | ".With() cannot appear " |
911 | | "more than once in an EXPECT_CALL()."); |
912 | | } else { |
913 | | ExpectSpecProperty(last_clause_ < kWith, |
914 | | ".With() must be the first " |
915 | | "clause in an EXPECT_CALL()."); |
916 | | } |
917 | | last_clause_ = kWith; |
918 | | |
919 | | extra_matcher_ = m; |
920 | | extra_matcher_specified_ = true; |
921 | | return *this; |
922 | | } |
923 | | |
924 | | // Implements the .Times() clause. |
925 | 0 | TypedExpectation& Times(const Cardinality& a_cardinality) { |
926 | 0 | ExpectationBase::UntypedTimes(a_cardinality); |
927 | 0 | return *this; |
928 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<void ()>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::FrameMetrics const&)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::dom::CaretChangedReason)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned char)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::Times(testing::Cardinality const&) Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::Times(testing::Cardinality const&) |
929 | | |
930 | | // Implements the .Times() clause. |
931 | 0 | TypedExpectation& Times(int n) { |
932 | 0 | return Times(Exactly(n)); |
933 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::FrameMetrics const&)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<void ()>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::dom::CaretChangedReason)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned char)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::Times(int) Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::Times(int) |
934 | | |
935 | | // Implements the .InSequence() clause. |
936 | 0 | TypedExpectation& InSequence(const Sequence& s) { |
937 | 0 | ExpectSpecProperty(last_clause_ <= kInSequence, |
938 | 0 | ".InSequence() cannot appear after .After()," |
939 | 0 | " .WillOnce(), .WillRepeatedly(), or " |
940 | 0 | ".RetiresOnSaturation()."); |
941 | 0 | last_clause_ = kInSequence; |
942 | 0 |
|
943 | 0 | s.AddExpectation(GetHandle()); |
944 | 0 | return *this; |
945 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::InSequence(testing::Sequence const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::InSequence(testing::Sequence const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::InSequence(testing::Sequence const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::InSequence(testing::Sequence const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::InSequence(testing::Sequence const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::InSequence(testing::Sequence const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::InSequence(testing::Sequence const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::InSequence(testing::Sequence const&) |
946 | | TypedExpectation& InSequence(const Sequence& s1, const Sequence& s2) { |
947 | | return InSequence(s1).InSequence(s2); |
948 | | } |
949 | | TypedExpectation& InSequence(const Sequence& s1, const Sequence& s2, |
950 | | const Sequence& s3) { |
951 | | return InSequence(s1, s2).InSequence(s3); |
952 | | } |
953 | | TypedExpectation& InSequence(const Sequence& s1, const Sequence& s2, |
954 | | const Sequence& s3, const Sequence& s4) { |
955 | | return InSequence(s1, s2, s3).InSequence(s4); |
956 | | } |
957 | | TypedExpectation& InSequence(const Sequence& s1, const Sequence& s2, |
958 | | const Sequence& s3, const Sequence& s4, |
959 | | const Sequence& s5) { |
960 | | return InSequence(s1, s2, s3, s4).InSequence(s5); |
961 | | } |
962 | | |
963 | | // Implements that .After() clause. |
964 | | TypedExpectation& After(const ExpectationSet& s) { |
965 | | ExpectSpecProperty(last_clause_ <= kAfter, |
966 | | ".After() cannot appear after .WillOnce()," |
967 | | " .WillRepeatedly(), or " |
968 | | ".RetiresOnSaturation()."); |
969 | | last_clause_ = kAfter; |
970 | | |
971 | | for (ExpectationSet::const_iterator it = s.begin(); it != s.end(); ++it) { |
972 | | immediate_prerequisites_ += *it; |
973 | | } |
974 | | return *this; |
975 | | } |
976 | | TypedExpectation& After(const ExpectationSet& s1, const ExpectationSet& s2) { |
977 | | return After(s1).After(s2); |
978 | | } |
979 | | TypedExpectation& After(const ExpectationSet& s1, const ExpectationSet& s2, |
980 | | const ExpectationSet& s3) { |
981 | | return After(s1, s2).After(s3); |
982 | | } |
983 | | TypedExpectation& After(const ExpectationSet& s1, const ExpectationSet& s2, |
984 | | const ExpectationSet& s3, const ExpectationSet& s4) { |
985 | | return After(s1, s2, s3).After(s4); |
986 | | } |
987 | | TypedExpectation& After(const ExpectationSet& s1, const ExpectationSet& s2, |
988 | | const ExpectationSet& s3, const ExpectationSet& s4, |
989 | | const ExpectationSet& s5) { |
990 | | return After(s1, s2, s3, s4).After(s5); |
991 | | } |
992 | | |
993 | | // Implements the .WillOnce() clause. |
994 | 0 | TypedExpectation& WillOnce(const Action<F>& action) { |
995 | 0 | ExpectSpecProperty(last_clause_ <= kWillOnce, |
996 | 0 | ".WillOnce() cannot appear after " |
997 | 0 | ".WillRepeatedly() or .RetiresOnSaturation()."); |
998 | 0 | last_clause_ = kWillOnce; |
999 | 0 |
|
1000 | 0 | untyped_actions_.push_back(new Action<F>(action)); |
1001 | 0 | if (!cardinality_specified()) { |
1002 | 0 | set_cardinality(Exactly(static_cast<int>(untyped_actions_.size()))); |
1003 | 0 | } |
1004 | 0 | return *this; |
1005 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&, mozilla::EventClassID)>::WillOnce(testing::Action<nsresult (nsPoint const&, mozilla::EventClassID)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::WillOnce(testing::Action<nsresult (nsPoint const&)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::WillOnce(testing::Action<nsresult ()> const&) Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::WillOnce(testing::Action<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::WillOnce(testing::Action<void (unsigned long long, lul::CallFrameInfo::EntryKind)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::WillOnce(testing::Action<void (unsigned long long, unsigned long long)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::WillOnce(testing::Action<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::WillOnce(testing::Action<bool ()> const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::WillOnce(testing::Action<void (unsigned long long, int)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::WillOnce(testing::Action<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::WillOnce(testing::Action<bool (unsigned long long, int, int, long)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::WillOnce(testing::Action<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::WillOnce(testing::Action<bool (unsigned long long, int)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::WillOnce(testing::Action<bool (unsigned long long, int, int)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::WillOnce(testing::Action<void (unsigned long long)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::WillOnce(testing::Action<bool (unsigned long long, bool)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::WillOnce(testing::Action<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::WillOnce(testing::Action<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)> const&) |
1006 | | |
1007 | | // Implements the .WillRepeatedly() clause. |
1008 | 0 | TypedExpectation& WillRepeatedly(const Action<F>& action) { |
1009 | 0 | if (last_clause_ == kWillRepeatedly) { |
1010 | 0 | ExpectSpecProperty(false, |
1011 | 0 | ".WillRepeatedly() cannot appear " |
1012 | 0 | "more than once in an EXPECT_CALL()."); |
1013 | 0 | } else { |
1014 | 0 | ExpectSpecProperty(last_clause_ < kWillRepeatedly, |
1015 | 0 | ".WillRepeatedly() cannot appear " |
1016 | 0 | "after .RetiresOnSaturation()."); |
1017 | 0 | } |
1018 | 0 | last_clause_ = kWillRepeatedly; |
1019 | 0 | repeated_action_specified_ = true; |
1020 | 0 |
|
1021 | 0 | repeated_action_ = action; |
1022 | 0 | if (!cardinality_specified()) { |
1023 | 0 | set_cardinality(AtLeast(static_cast<int>(untyped_actions_.size()))); |
1024 | 0 | } |
1025 | 0 |
|
1026 | 0 | // Now that no more action clauses can be specified, we check |
1027 | 0 | // whether their count makes sense. |
1028 | 0 | CheckActionCountIfNotDone(); |
1029 | 0 | return *this; |
1030 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::WillRepeatedly(testing::Action<nsresult (nsPoint const&)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::WillRepeatedly(testing::Action<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaretManager::CaretMode ()>::WillRepeatedly(testing::Action<mozilla::AccessibleCaretManager::CaretMode ()> const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (nsINode*)>::WillRepeatedly(testing::Action<bool (nsINode*)> const&) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::WillRepeatedly(testing::Action<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&) |
1031 | | |
1032 | | // Implements the .RetiresOnSaturation() clause. |
1033 | | TypedExpectation& RetiresOnSaturation() { |
1034 | | ExpectSpecProperty(last_clause_ < kRetiresOnSaturation, |
1035 | | ".RetiresOnSaturation() cannot appear " |
1036 | | "more than once."); |
1037 | | last_clause_ = kRetiresOnSaturation; |
1038 | | retires_on_saturation_ = true; |
1039 | | |
1040 | | // Now that no more action clauses can be specified, we check |
1041 | | // whether their count makes sense. |
1042 | | CheckActionCountIfNotDone(); |
1043 | | return *this; |
1044 | | } |
1045 | | |
1046 | | // Returns the matchers for the arguments as specified inside the |
1047 | | // EXPECT_CALL() macro. |
1048 | | const ArgumentMatcherTuple& matchers() const { |
1049 | | return matchers_; |
1050 | | } |
1051 | | |
1052 | | // Returns the matcher specified by the .With() clause. |
1053 | | const Matcher<const ArgumentTuple&>& extra_matcher() const { |
1054 | | return extra_matcher_; |
1055 | | } |
1056 | | |
1057 | | // Returns the action specified by the .WillRepeatedly() clause. |
1058 | 0 | const Action<F>& repeated_action() const { return repeated_action_; } Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::SchedulerGroup::ValidationType)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void ()>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::FrameMetrics const&)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&, unsigned int const&)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&, mozilla::EventClassID)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaretManager::CaretMode ()>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::dom::CaretChangedReason)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<bool (nsINode*)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned char)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long, unsigned long)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long, int, lul::LExprHow, short, long)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<unsigned int (lul::PfxInstr)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::repeated_action() const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long)>::repeated_action() const |
1059 | | |
1060 | | // If this mock method has an extra matcher (i.e. .With(matcher)), |
1061 | | // describes it to the ostream. |
1062 | 0 | virtual void MaybeDescribeExtraMatcherTo(::std::ostream* os) { |
1063 | 0 | if (extra_matcher_specified_) { |
1064 | 0 | *os << " Expected args: "; |
1065 | 0 | extra_matcher_.DescribeTo(os); |
1066 | 0 | *os << "\n"; |
1067 | 0 | } |
1068 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<void ()>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::FrameMetrics const&)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&, mozilla::EventClassID)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaretManager::CaretMode ()>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::dom::CaretChangedReason)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (nsINode*)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned char)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<unsigned int (lul::PfxInstr)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::MaybeDescribeExtraMatcherTo(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) |
1069 | | |
1070 | | private: |
1071 | | template <typename Function> |
1072 | | friend class FunctionMockerBase; |
1073 | | |
1074 | | // Returns an Expectation object that references and co-owns this |
1075 | | // expectation. |
1076 | 0 | virtual Expectation GetHandle() { |
1077 | 0 | return owner_->GetHandleOf(this); |
1078 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<void ()>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::FrameMetrics const&)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&, mozilla::EventClassID)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaretManager::CaretMode ()>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::dom::CaretChangedReason)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<bool (nsINode*)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned char)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<unsigned int (lul::PfxInstr)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::GetHandle() Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::GetHandle() |
1079 | | |
1080 | | // The following methods will be called only after the EXPECT_CALL() |
1081 | | // statement finishes and when the current thread holds |
1082 | | // g_gmock_mutex. |
1083 | | |
1084 | | // Returns true iff this expectation matches the given arguments. |
1085 | | bool Matches(const ArgumentTuple& args) const |
1086 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
1087 | 0 | g_gmock_mutex.AssertHeld(); |
1088 | 0 | return TupleMatches(matchers_, args) && extra_matcher_.Matches(args); |
1089 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::SchedulerGroup::ValidationType)>::Matches(std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void ()>::Matches(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::FrameMetrics const&)>::Matches(std::__1::tuple<mozilla::layers::FrameMetrics const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::Matches(std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&, unsigned int const&)>::Matches(std::__1::tuple<unsigned long const&, unsigned int const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::Matches(std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::Matches(std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::Matches(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&)>::Matches(std::__1::tuple<unsigned long const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&)>::Matches(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::Matches(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&, mozilla::EventClassID)>::Matches(std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::Matches(std::__1::tuple<nsPoint const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::Matches(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaretManager::CaretMode ()>::Matches(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::dom::CaretChangedReason)>::Matches(std::__1::tuple<mozilla::dom::CaretChangedReason> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (nsINode*)>::Matches(std::__1::tuple<nsINode*> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::Matches(std::__1::tuple<nsIFrame*, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::Matches(std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::Matches(std::__1::tuple<unsigned long long, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::Matches(std::__1::tuple<unsigned long long, int, int, long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::Matches(std::__1::tuple<unsigned long long, int, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::Matches(std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::Matches(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::Matches(std::__1::tuple<unsigned long long, bool> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::Matches(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::Matches(std::__1::tuple<unsigned long long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::Matches(std::__1::tuple<unsigned long long, unsigned long long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::Matches(std::__1::tuple<unsigned long long, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::Matches(std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned char)>::Matches(std::__1::tuple<unsigned long long, unsigned char> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::Matches(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long, unsigned long)>::Matches(std::__1::tuple<unsigned long, unsigned long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long, int, lul::LExprHow, short, long)>::Matches(std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<unsigned int (lul::PfxInstr)>::Matches(std::__1::tuple<lul::PfxInstr> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::Matches(std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::Matches(std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long)>::Matches(std::__1::tuple<unsigned long> const&) const |
1090 | | |
1091 | | // Returns true iff this expectation should handle the given arguments. |
1092 | | bool ShouldHandleArguments(const ArgumentTuple& args) const |
1093 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
1094 | 0 | g_gmock_mutex.AssertHeld(); |
1095 | 0 |
|
1096 | 0 | // In case the action count wasn't checked when the expectation |
1097 | 0 | // was defined (e.g. if this expectation has no WillRepeatedly() |
1098 | 0 | // or RetiresOnSaturation() clause), we check it when the |
1099 | 0 | // expectation is used for the first time. |
1100 | 0 | CheckActionCountIfNotDone(); |
1101 | 0 | return !is_retired() && AllPrerequisitesAreSatisfied() && Matches(args); |
1102 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::SchedulerGroup::ValidationType)>::ShouldHandleArguments(std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void ()>::ShouldHandleArguments(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::FrameMetrics const&)>::ShouldHandleArguments(std::__1::tuple<mozilla::layers::FrameMetrics const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::ShouldHandleArguments(std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&, unsigned int const&)>::ShouldHandleArguments(std::__1::tuple<unsigned long const&, unsigned int const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::ShouldHandleArguments(std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::ShouldHandleArguments(std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::ShouldHandleArguments(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&)>::ShouldHandleArguments(std::__1::tuple<unsigned long const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&)>::ShouldHandleArguments(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::ShouldHandleArguments(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&, mozilla::EventClassID)>::ShouldHandleArguments(std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::ShouldHandleArguments(std::__1::tuple<nsPoint const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::ShouldHandleArguments(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaretManager::CaretMode ()>::ShouldHandleArguments(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::dom::CaretChangedReason)>::ShouldHandleArguments(std::__1::tuple<mozilla::dom::CaretChangedReason> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (nsINode*)>::ShouldHandleArguments(std::__1::tuple<nsINode*> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::ShouldHandleArguments(std::__1::tuple<nsIFrame*, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::ShouldHandleArguments(std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::ShouldHandleArguments(std::__1::tuple<unsigned long long, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::ShouldHandleArguments(std::__1::tuple<unsigned long long, int, int, long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::ShouldHandleArguments(std::__1::tuple<unsigned long long, int, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::ShouldHandleArguments(std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::ShouldHandleArguments(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::ShouldHandleArguments(std::__1::tuple<unsigned long long, bool> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::ShouldHandleArguments(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::ShouldHandleArguments(std::__1::tuple<unsigned long long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::ShouldHandleArguments(std::__1::tuple<unsigned long long, unsigned long long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::ShouldHandleArguments(std::__1::tuple<unsigned long long, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::ShouldHandleArguments(std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned char)>::ShouldHandleArguments(std::__1::tuple<unsigned long long, unsigned char> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::ShouldHandleArguments(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long, unsigned long)>::ShouldHandleArguments(std::__1::tuple<unsigned long, unsigned long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long, int, lul::LExprHow, short, long)>::ShouldHandleArguments(std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<unsigned int (lul::PfxInstr)>::ShouldHandleArguments(std::__1::tuple<lul::PfxInstr> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::ShouldHandleArguments(std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::ShouldHandleArguments(std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long)>::ShouldHandleArguments(std::__1::tuple<unsigned long> const&) const |
1103 | | |
1104 | | // Describes the result of matching the arguments against this |
1105 | | // expectation to the given ostream. |
1106 | | void ExplainMatchResultTo( |
1107 | | const ArgumentTuple& args, |
1108 | | ::std::ostream* os) const |
1109 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
1110 | 0 | g_gmock_mutex.AssertHeld(); |
1111 | 0 |
|
1112 | 0 | if (is_retired()) { |
1113 | 0 | *os << " Expected: the expectation is active\n" |
1114 | 0 | << " Actual: it is retired\n"; |
1115 | 0 | } else if (!Matches(args)) { |
1116 | 0 | if (!TupleMatches(matchers_, args)) { |
1117 | 0 | ExplainMatchFailureTupleTo(matchers_, args, os); |
1118 | 0 | } |
1119 | 0 | StringMatchResultListener listener; |
1120 | 0 | if (!extra_matcher_.MatchAndExplain(args, &listener)) { |
1121 | 0 | *os << " Expected args: "; |
1122 | 0 | extra_matcher_.DescribeTo(os); |
1123 | 0 | *os << "\n Actual: don't match"; |
1124 | 0 |
|
1125 | 0 | internal::PrintIfNotEmpty(listener.str(), os); |
1126 | 0 | *os << "\n"; |
1127 | 0 | } |
1128 | 0 | } else if (!AllPrerequisitesAreSatisfied()) { |
1129 | 0 | *os << " Expected: all pre-requisites are satisfied\n" |
1130 | 0 | << " Actual: the following immediate pre-requisites " |
1131 | 0 | << "are not satisfied:\n"; |
1132 | 0 | ExpectationSet unsatisfied_prereqs; |
1133 | 0 | FindUnsatisfiedPrerequisites(&unsatisfied_prereqs); |
1134 | 0 | int i = 0; |
1135 | 0 | for (ExpectationSet::const_iterator it = unsatisfied_prereqs.begin(); |
1136 | 0 | it != unsatisfied_prereqs.end(); ++it) { |
1137 | 0 | it->expectation_base()->DescribeLocationTo(os); |
1138 | 0 | *os << "pre-requisite #" << i++ << "\n"; |
1139 | 0 | } |
1140 | 0 | *os << " (end of pre-requisites)\n"; |
1141 | 0 | } else { |
1142 | 0 | // This line is here just for completeness' sake. It will never |
1143 | 0 | // be executed as currently the ExplainMatchResultTo() function |
1144 | 0 | // is called only when the mock function call does NOT match the |
1145 | 0 | // expectation. |
1146 | 0 | *os << "The call matches the expectation.\n"; |
1147 | 0 | } |
1148 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::SchedulerGroup::ValidationType)>::ExplainMatchResultTo(std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void ()>::ExplainMatchResultTo(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::FrameMetrics const&)>::ExplainMatchResultTo(std::__1::tuple<mozilla::layers::FrameMetrics const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::ExplainMatchResultTo(std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&, unsigned int const&)>::ExplainMatchResultTo(std::__1::tuple<unsigned long const&, unsigned int const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::ExplainMatchResultTo(std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::ExplainMatchResultTo(std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::ExplainMatchResultTo(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&)>::ExplainMatchResultTo(std::__1::tuple<unsigned long const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&)>::ExplainMatchResultTo(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::ExplainMatchResultTo(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&, mozilla::EventClassID)>::ExplainMatchResultTo(std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::ExplainMatchResultTo(std::__1::tuple<nsPoint const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::ExplainMatchResultTo(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaretManager::CaretMode ()>::ExplainMatchResultTo(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::dom::CaretChangedReason)>::ExplainMatchResultTo(std::__1::tuple<mozilla::dom::CaretChangedReason> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (nsINode*)>::ExplainMatchResultTo(std::__1::tuple<nsINode*> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::ExplainMatchResultTo(std::__1::tuple<nsIFrame*, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::ExplainMatchResultTo(std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::ExplainMatchResultTo(std::__1::tuple<unsigned long long, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::ExplainMatchResultTo(std::__1::tuple<unsigned long long, int, int, long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::ExplainMatchResultTo(std::__1::tuple<unsigned long long, int, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::ExplainMatchResultTo(std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::ExplainMatchResultTo(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::ExplainMatchResultTo(std::__1::tuple<unsigned long long, bool> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::ExplainMatchResultTo(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::ExplainMatchResultTo(std::__1::tuple<unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::ExplainMatchResultTo(std::__1::tuple<unsigned long long, unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::ExplainMatchResultTo(std::__1::tuple<unsigned long long, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::ExplainMatchResultTo(std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned char)>::ExplainMatchResultTo(std::__1::tuple<unsigned long long, unsigned char> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::ExplainMatchResultTo(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long, unsigned long)>::ExplainMatchResultTo(std::__1::tuple<unsigned long, unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long, int, lul::LExprHow, short, long)>::ExplainMatchResultTo(std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<unsigned int (lul::PfxInstr)>::ExplainMatchResultTo(std::__1::tuple<lul::PfxInstr> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::ExplainMatchResultTo(std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::ExplainMatchResultTo(std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long)>::ExplainMatchResultTo(std::__1::tuple<unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const |
1149 | | |
1150 | | // Returns the action that should be taken for the current invocation. |
1151 | | const Action<F>& GetCurrentAction( |
1152 | | const FunctionMockerBase<F>* mocker, |
1153 | | const ArgumentTuple& args) const |
1154 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
1155 | 0 | g_gmock_mutex.AssertHeld(); |
1156 | 0 | const int count = call_count(); |
1157 | 0 | Assert(count >= 1, __FILE__, __LINE__, |
1158 | 0 | "call_count() is <= 0 when GetCurrentAction() is " |
1159 | 0 | "called - this should never happen."); |
1160 | 0 |
|
1161 | 0 | const int action_count = static_cast<int>(untyped_actions_.size()); |
1162 | 0 | if (action_count > 0 && !repeated_action_specified_ && |
1163 | 0 | count > action_count) { |
1164 | 0 | // If there is at least one WillOnce() and no WillRepeatedly(), |
1165 | 0 | // we warn the user when the WillOnce() clauses ran out. |
1166 | 0 | ::std::stringstream ss; |
1167 | 0 | DescribeLocationTo(&ss); |
1168 | 0 | ss << "Actions ran out in " << source_text() << "...\n" |
1169 | 0 | << "Called " << count << " times, but only " |
1170 | 0 | << action_count << " WillOnce()" |
1171 | 0 | << (action_count == 1 ? " is" : "s are") << " specified - "; |
1172 | 0 | mocker->DescribeDefaultActionTo(args, &ss); |
1173 | 0 | Log(kWarning, ss.str(), 1); |
1174 | 0 | } |
1175 | 0 |
|
1176 | 0 | return count <= action_count ? |
1177 | 0 | *static_cast<const Action<F>*>(untyped_actions_[count - 1]) : |
1178 | 0 | repeated_action(); |
1179 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::SchedulerGroup::ValidationType)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)> const*, std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void ()>::GetCurrentAction(testing::internal::FunctionMockerBase<void ()> const*, std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::FrameMetrics const&)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)> const*, std::__1::tuple<mozilla::layers::FrameMetrics const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)> const*, std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&, unsigned int const&)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)> const*, std::__1::tuple<unsigned long const&, unsigned int const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)> const*, std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)> const*, std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)> const*, std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (unsigned long const&)> const*, std::__1::tuple<unsigned long const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)> const*, std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)> const*, std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&, mozilla::EventClassID)>::GetCurrentAction(testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)> const*, std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::GetCurrentAction(testing::internal::FunctionMockerBase<nsresult (nsPoint const&)> const*, std::__1::tuple<nsPoint const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::GetCurrentAction(testing::internal::FunctionMockerBase<nsresult ()> const*, std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaretManager::CaretMode ()>::GetCurrentAction(testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()> const*, std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::dom::CaretChangedReason)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)> const*, std::__1::tuple<mozilla::dom::CaretChangedReason> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (nsINode*)>::GetCurrentAction(testing::internal::FunctionMockerBase<bool (nsINode*)> const*, std::__1::tuple<nsINode*> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::GetCurrentAction(testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)> const*, std::__1::tuple<nsIFrame*, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::GetCurrentAction(testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)> const*, std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::GetCurrentAction(testing::internal::FunctionMockerBase<bool (unsigned long long, int)> const*, std::__1::tuple<unsigned long long, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::GetCurrentAction(testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)> const*, std::__1::tuple<unsigned long long, int, int, long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::GetCurrentAction(testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)> const*, std::__1::tuple<unsigned long long, int, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::GetCurrentAction(testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const*, std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::GetCurrentAction(testing::internal::FunctionMockerBase<bool ()> const*, std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::GetCurrentAction(testing::internal::FunctionMockerBase<bool (unsigned long long, bool)> const*, std::__1::tuple<unsigned long long, bool> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)> const*, std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (unsigned long long)> const*, std::__1::tuple<unsigned long long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)> const*, std::__1::tuple<unsigned long long, unsigned long long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (unsigned long long, int)> const*, std::__1::tuple<unsigned long long, int> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const*, std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned char)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)> const*, std::__1::tuple<unsigned long long, unsigned char> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)> const*, std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long, unsigned long)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)> const*, std::__1::tuple<unsigned long, unsigned long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long, int, lul::LExprHow, short, long)>::GetCurrentAction(testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)> const*, std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<unsigned int (lul::PfxInstr)>::GetCurrentAction(testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)> const*, std::__1::tuple<lul::PfxInstr> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::GetCurrentAction(testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)> const*, std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::GetCurrentAction(testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)> const*, std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&) const Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long)>::GetCurrentAction(testing::internal::FunctionMockerBase<bool (unsigned long)> const*, std::__1::tuple<unsigned long> const&) const |
1180 | | |
1181 | | // Given the arguments of a mock function call, if the call will |
1182 | | // over-saturate this expectation, returns the default action; |
1183 | | // otherwise, returns the next action in this expectation. Also |
1184 | | // describes *what* happened to 'what', and explains *why* Google |
1185 | | // Mock does it to 'why'. This method is not const as it calls |
1186 | | // IncrementCallCount(). A return value of NULL means the default |
1187 | | // action. |
1188 | | const Action<F>* GetActionForArguments( |
1189 | | const FunctionMockerBase<F>* mocker, |
1190 | | const ArgumentTuple& args, |
1191 | | ::std::ostream* what, |
1192 | | ::std::ostream* why) |
1193 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
1194 | 0 | g_gmock_mutex.AssertHeld(); |
1195 | 0 | if (IsSaturated()) { |
1196 | 0 | // We have an excessive call. |
1197 | 0 | IncrementCallCount(); |
1198 | 0 | *what << "Mock function called more times than expected - "; |
1199 | 0 | mocker->DescribeDefaultActionTo(args, what); |
1200 | 0 | DescribeCallCountTo(why); |
1201 | 0 |
|
1202 | 0 | // TODO(wan@google.com): allow the user to control whether |
1203 | 0 | // unexpected calls should fail immediately or continue using a |
1204 | 0 | // flag --gmock_unexpected_calls_are_fatal. |
1205 | 0 | return NULL; |
1206 | 0 | } |
1207 | 0 | |
1208 | 0 | IncrementCallCount(); |
1209 | 0 | RetireAllPreRequisites(); |
1210 | 0 |
|
1211 | 0 | if (retires_on_saturation_ && IsSaturated()) { |
1212 | 0 | Retire(); |
1213 | 0 | } |
1214 | 0 |
|
1215 | 0 | // Must be done after IncrementCount()! |
1216 | 0 | *what << "Mock function call matches " << source_text() <<"...\n"; |
1217 | 0 | return &(GetCurrentAction(mocker, args)); |
1218 | 0 | } Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::SchedulerGroup::ValidationType)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)> const*, std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void ()>::GetActionForArguments(testing::internal::FunctionMockerBase<void ()> const*, std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::FrameMetrics const&)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)> const*, std::__1::tuple<mozilla::layers::FrameMetrics const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)> const*, std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&, unsigned int const&)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)> const*, std::__1::tuple<unsigned long const&, unsigned int const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)> const*, std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)> const*, std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)> const*, std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long const&)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (unsigned long const&)> const*, std::__1::tuple<unsigned long const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::layers::ScrollableLayerGuid const&)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)> const*, std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)> const*, std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&, mozilla::EventClassID)>::GetActionForArguments(testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)> const*, std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult (nsPoint const&)>::GetActionForArguments(testing::internal::FunctionMockerBase<nsresult (nsPoint const&)> const*, std::__1::tuple<nsPoint const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<nsresult ()>::GetActionForArguments(testing::internal::FunctionMockerBase<nsresult ()> const*, std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaretManager::CaretMode ()>::GetActionForArguments(testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()> const*, std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (mozilla::dom::CaretChangedReason)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)> const*, std::__1::tuple<mozilla::dom::CaretChangedReason> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (nsINode*)>::GetActionForArguments(testing::internal::FunctionMockerBase<bool (nsINode*)> const*, std::__1::tuple<nsINode*> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::GetActionForArguments(testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)> const*, std::__1::tuple<nsIFrame*, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::GetActionForArguments(testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)> const*, std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int)>::GetActionForArguments(testing::internal::FunctionMockerBase<bool (unsigned long long, int)> const*, std::__1::tuple<unsigned long long, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int, long)>::GetActionForArguments(testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)> const*, std::__1::tuple<unsigned long long, int, int, long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, int)>::GetActionForArguments(testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)> const*, std::__1::tuple<unsigned long long, int, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::GetActionForArguments(testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const*, std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool ()>::GetActionForArguments(testing::internal::FunctionMockerBase<bool ()> const*, std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long long, bool)>::GetActionForArguments(testing::internal::FunctionMockerBase<bool (unsigned long long, bool)> const*, std::__1::tuple<unsigned long long, bool> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)> const*, std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (unsigned long long)> const*, std::__1::tuple<unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned long long)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)> const*, std::__1::tuple<unsigned long long, unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, int)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (unsigned long long, int)> const*, std::__1::tuple<unsigned long long, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const*, std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, unsigned char)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)> const*, std::__1::tuple<unsigned long long, unsigned char> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)> const*, std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long, unsigned long)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)> const*, std::__1::tuple<unsigned long, unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<void (unsigned long, int, lul::LExprHow, short, long)>::GetActionForArguments(testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)> const*, std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<unsigned int (lul::PfxInstr)>::GetActionForArguments(testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)> const*, std::__1::tuple<lul::PfxInstr> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::GetActionForArguments(testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)> const*, std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::GetActionForArguments(testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)> const*, std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::TypedExpectation<bool (unsigned long)>::GetActionForArguments(testing::internal::FunctionMockerBase<bool (unsigned long)> const*, std::__1::tuple<unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) |
1219 | | |
1220 | | // All the fields below won't change once the EXPECT_CALL() |
1221 | | // statement finishes. |
1222 | | FunctionMockerBase<F>* const owner_; |
1223 | | ArgumentMatcherTuple matchers_; |
1224 | | Matcher<const ArgumentTuple&> extra_matcher_; |
1225 | | Action<F> repeated_action_; |
1226 | | |
1227 | | GTEST_DISALLOW_COPY_AND_ASSIGN_(TypedExpectation); |
1228 | | }; // class TypedExpectation |
1229 | | |
1230 | | // A MockSpec object is used by ON_CALL() or EXPECT_CALL() for |
1231 | | // specifying the default behavior of, or expectation on, a mock |
1232 | | // function. |
1233 | | |
1234 | | // Note: class MockSpec really belongs to the ::testing namespace. |
1235 | | // However if we define it in ::testing, MSVC will complain when |
1236 | | // classes in ::testing::internal declare it as a friend class |
1237 | | // template. To workaround this compiler bug, we define MockSpec in |
1238 | | // ::testing::internal and import it into ::testing. |
1239 | | |
1240 | | // Logs a message including file and line number information. |
1241 | | GTEST_API_ void LogWithLocation(testing::internal::LogSeverity severity, |
1242 | | const char* file, int line, |
1243 | | const string& message); |
1244 | | |
1245 | | template <typename F> |
1246 | | class MockSpec { |
1247 | | public: |
1248 | | typedef typename internal::Function<F>::ArgumentTuple ArgumentTuple; |
1249 | | typedef typename internal::Function<F>::ArgumentMatcherTuple |
1250 | | ArgumentMatcherTuple; |
1251 | | |
1252 | | // Constructs a MockSpec object, given the function mocker object |
1253 | | // that the spec is associated with. |
1254 | | explicit MockSpec(internal::FunctionMockerBase<F>* function_mocker) |
1255 | 0 | : function_mocker_(function_mocker) {} Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::SchedulerGroup::ValidationType)>::MockSpec(testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>*) Unexecuted instantiation: testing::internal::MockSpec<void ()>::MockSpec(testing::internal::FunctionMockerBase<void ()>*) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::layers::FrameMetrics const&)>::MockSpec(testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::MockSpec(testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long const&, unsigned int const&)>::MockSpec(testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>*) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::MockSpec(testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>*) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::MockSpec(testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>*) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::MockSpec(testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long const&)>::MockSpec(testing::internal::FunctionMockerBase<void (unsigned long const&)>*) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::layers::ScrollableLayerGuid const&)>::MockSpec(testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>*) Unexecuted instantiation: testing::internal::MockSpec<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::MockSpec(testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>*) Unexecuted instantiation: testing::internal::MockSpec<nsresult (nsPoint const&, mozilla::EventClassID)>::MockSpec(testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>*) Unexecuted instantiation: testing::internal::MockSpec<nsresult (nsPoint const&)>::MockSpec(testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>*) Unexecuted instantiation: testing::internal::MockSpec<nsresult ()>::MockSpec(testing::internal::FunctionMockerBase<nsresult ()>*) Unexecuted instantiation: testing::internal::MockSpec<mozilla::AccessibleCaretManager::CaretMode ()>::MockSpec(testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>*) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::dom::CaretChangedReason)>::MockSpec(testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>*) Unexecuted instantiation: testing::internal::MockSpec<bool (nsINode*)>::MockSpec(testing::internal::FunctionMockerBase<bool (nsINode*)>*) Unexecuted instantiation: testing::internal::MockSpec<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::MockSpec(testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::MockSpec(testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, int)>::MockSpec(testing::internal::FunctionMockerBase<bool (unsigned long long, int)>*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, int, int, long)>::MockSpec(testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, int, int)>::MockSpec(testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::MockSpec(testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>*) Unexecuted instantiation: testing::internal::MockSpec<bool ()>::MockSpec(testing::internal::FunctionMockerBase<bool ()>*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, bool)>::MockSpec(testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::MockSpec(testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long)>::MockSpec(testing::internal::FunctionMockerBase<void (unsigned long long)>*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, unsigned long long)>::MockSpec(testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, int)>::MockSpec(testing::internal::FunctionMockerBase<void (unsigned long long, int)>*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::MockSpec(testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, unsigned char)>::MockSpec(testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::MockSpec(testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long, unsigned long)>::MockSpec(testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long, int, lul::LExprHow, short, long)>::MockSpec(testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>*) Unexecuted instantiation: testing::internal::MockSpec<unsigned int (lul::PfxInstr)>::MockSpec(testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>*) Unexecuted instantiation: testing::internal::MockSpec<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::MockSpec(testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>*) Unexecuted instantiation: testing::internal::MockSpec<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::MockSpec(testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long)>::MockSpec(testing::internal::FunctionMockerBase<bool (unsigned long)>*) |
1256 | | |
1257 | | // Adds a new default action spec to the function mocker and returns |
1258 | | // the newly created spec. |
1259 | | internal::OnCallSpec<F>& InternalDefaultActionSetAt( |
1260 | | const char* file, int line, const char* obj, const char* call) { |
1261 | | LogWithLocation(internal::kInfo, file, line, |
1262 | | string("ON_CALL(") + obj + ", " + call + ") invoked"); |
1263 | | return function_mocker_->AddNewOnCallSpec(file, line, matchers_); |
1264 | | } |
1265 | | |
1266 | | // Adds a new expectation spec to the function mocker and returns |
1267 | | // the newly created spec. |
1268 | | internal::TypedExpectation<F>& InternalExpectedAt( |
1269 | 0 | const char* file, int line, const char* obj, const char* call) { |
1270 | 0 | const string source_text(string("EXPECT_CALL(") + obj + ", " + call + ")"); |
1271 | 0 | LogWithLocation(internal::kInfo, file, line, source_text + " invoked"); |
1272 | 0 | return function_mocker_->AddNewExpectation( |
1273 | 0 | file, line, source_text, matchers_); |
1274 | 0 | } Unexecuted instantiation: testing::internal::MockSpec<void ()>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::layers::FrameMetrics const&)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<nsresult (nsPoint const&, mozilla::EventClassID)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<nsresult (nsPoint const&)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<nsresult ()>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<mozilla::AccessibleCaretManager::CaretMode ()>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::dom::CaretChangedReason)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<bool (nsINode*)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, unsigned char)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, int)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, int, int, long)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, int, int)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, bool)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<bool ()>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, unsigned long long)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, int)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<unsigned int (lul::PfxInstr)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::InternalExpectedAt(char const*, int, char const*, char const*) Unexecuted instantiation: testing::internal::MockSpec<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::InternalExpectedAt(char const*, int, char const*, char const*) |
1275 | | |
1276 | | private: |
1277 | | template <typename Function> |
1278 | | friend class internal::FunctionMocker; |
1279 | | |
1280 | 0 | void SetMatchers(const ArgumentMatcherTuple& matchers) { |
1281 | 0 | matchers_ = matchers; |
1282 | 0 | } Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::SchedulerGroup::ValidationType)>::SetMatchers(std::__1::tuple<testing::Matcher<mozilla::SchedulerGroup::ValidationType> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::layers::FrameMetrics const&)>::SetMatchers(std::__1::tuple<testing::Matcher<mozilla::layers::FrameMetrics const&> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::SetMatchers(std::__1::tuple<testing::Matcher<mozilla::layers::ScrollableLayerGuid const&>, testing::Matcher<mozilla::layers::GeckoContentController::APZStateChange>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::SetMatchers(std::__1::tuple<testing::Matcher<mozilla::layers::GeckoContentController::TapType>, testing::Matcher<mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&>, testing::Matcher<unsigned short>, testing::Matcher<mozilla::layers::ScrollableLayerGuid const&>, testing::Matcher<unsigned long> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::SetMatchers(std::__1::tuple<testing::Matcher<mozilla::PinchGestureInput::PinchGestureType>, testing::Matcher<mozilla::layers::ScrollableLayerGuid const&>, testing::Matcher<mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float> >, testing::Matcher<unsigned short> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::SetMatchers(std::__1::tuple<testing::Matcher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long const&>, testing::Matcher<mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long const&, unsigned int const&)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long const&>, testing::Matcher<unsigned int const&> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long const&)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long const&> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::layers::ScrollableLayerGuid const&)>::SetMatchers(std::__1::tuple<testing::Matcher<mozilla::layers::ScrollableLayerGuid const&> > const&) Unexecuted instantiation: testing::internal::MockSpec<nsresult (nsPoint const&, mozilla::EventClassID)>::SetMatchers(std::__1::tuple<testing::Matcher<nsPoint const&>, testing::Matcher<mozilla::EventClassID> > const&) Unexecuted instantiation: testing::internal::MockSpec<nsresult (nsPoint const&)>::SetMatchers(std::__1::tuple<testing::Matcher<nsPoint const&> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (mozilla::dom::CaretChangedReason)>::SetMatchers(std::__1::tuple<testing::Matcher<mozilla::dom::CaretChangedReason> > const&) Unexecuted instantiation: testing::internal::MockSpec<bool (nsINode*)>::SetMatchers(std::__1::tuple<testing::Matcher<nsINode*> > const&) Unexecuted instantiation: testing::internal::MockSpec<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::SetMatchers(std::__1::tuple<testing::Matcher<nsIFrame*>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, unsigned long long)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<unsigned long long> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, unsigned char)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<unsigned char> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<lul::CallFrameInfo::EntryKind>, testing::Matcher<unsigned long long> > const&) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long>, testing::Matcher<unsigned long long>, testing::Matcher<unsigned long long>, testing::Matcher<unsigned char>, testing::Matcher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>, testing::Matcher<unsigned int> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<lul::CallFrameInfo::EntryKind> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, int)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> > const&) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, int, int, long)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int>, testing::Matcher<int>, testing::Matcher<long> > const&) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int>, testing::Matcher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> > const&) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, int)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, int, int)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long long)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long long> > const&) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long long, bool)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<bool> > const&) Unexecuted instantiation: testing::internal::MockSpec<unsigned int (lul::PfxInstr)>::SetMatchers(std::__1::tuple<testing::Matcher<lul::PfxInstr> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long, unsigned long)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long>, testing::Matcher<unsigned long> > const&) Unexecuted instantiation: testing::internal::MockSpec<void (unsigned long, int, lul::LExprHow, short, long)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long>, testing::Matcher<int>, testing::Matcher<lul::LExprHow>, testing::Matcher<short>, testing::Matcher<long> > const&) Unexecuted instantiation: testing::internal::MockSpec<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::SetMatchers(std::__1::tuple<testing::Matcher<JS::ubi::Node const&>, testing::Matcher<mozilla::devtools::CoreDumpWriter::EdgePolicy> > const&) Unexecuted instantiation: testing::internal::MockSpec<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::SetMatchers(std::__1::tuple<testing::Matcher<mozilla::devtools::DeserializedEdge const&> > const&) Unexecuted instantiation: testing::internal::MockSpec<bool (unsigned long)>::SetMatchers(std::__1::tuple<testing::Matcher<unsigned long> > const&) |
1283 | | |
1284 | | // The function mocker that owns this spec. |
1285 | | internal::FunctionMockerBase<F>* const function_mocker_; |
1286 | | // The argument matchers specified in the spec. |
1287 | | ArgumentMatcherTuple matchers_; |
1288 | | |
1289 | | GTEST_DISALLOW_ASSIGN_(MockSpec); |
1290 | | }; // class MockSpec |
1291 | | |
1292 | | // Wrapper type for generically holding an ordinary value or lvalue reference. |
1293 | | // If T is not a reference type, it must be copyable or movable. |
1294 | | // ReferenceOrValueWrapper<T> is movable, and will also be copyable unless |
1295 | | // T is a move-only value type (which means that it will always be copyable |
1296 | | // if the current platform does not support move semantics). |
1297 | | // |
1298 | | // The primary template defines handling for values, but function header |
1299 | | // comments describe the contract for the whole template (including |
1300 | | // specializations). |
1301 | | template <typename T> |
1302 | | class ReferenceOrValueWrapper { |
1303 | | public: |
1304 | | // Constructs a wrapper from the given value/reference. |
1305 | | explicit ReferenceOrValueWrapper(T value) |
1306 | 0 | : value_(::testing::internal::move(value)) { |
1307 | 0 | } Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<nsresult>::ReferenceOrValueWrapper(nsresult) Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<mozilla::AccessibleCaretManager::CaretMode>::ReferenceOrValueWrapper(mozilla::AccessibleCaretManager::CaretMode) Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<bool>::ReferenceOrValueWrapper(bool) Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<mozilla::AccessibleCaret::PositionChangedResult>::ReferenceOrValueWrapper(mozilla::AccessibleCaret::PositionChangedResult) Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<unsigned int>::ReferenceOrValueWrapper(unsigned int) Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<JS::ubi::Node>::ReferenceOrValueWrapper(JS::ubi::Node) |
1308 | | |
1309 | | // Unwraps and returns the underlying value/reference, exactly as |
1310 | | // originally passed. The behavior of calling this more than once on |
1311 | | // the same object is unspecified. |
1312 | 0 | T Unwrap() { return ::testing::internal::move(value_); } Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<nsresult>::Unwrap() Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<mozilla::AccessibleCaret::PositionChangedResult>::Unwrap() Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<mozilla::AccessibleCaretManager::CaretMode>::Unwrap() Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<bool>::Unwrap() Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<unsigned int>::Unwrap() Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<JS::ubi::Node>::Unwrap() |
1313 | | |
1314 | | // Provides nondestructive access to the underlying value/reference. |
1315 | | // Always returns a const reference (more precisely, |
1316 | | // const RemoveReference<T>&). The behavior of calling this after |
1317 | | // calling Unwrap on the same object is unspecified. |
1318 | 0 | const T& Peek() const { |
1319 | 0 | return value_; |
1320 | 0 | } Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<nsresult>::Peek() const Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<mozilla::AccessibleCaretManager::CaretMode>::Peek() const Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<bool>::Peek() const Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<mozilla::AccessibleCaret::PositionChangedResult>::Peek() const Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<unsigned int>::Peek() const Unexecuted instantiation: testing::internal::ReferenceOrValueWrapper<JS::ubi::Node>::Peek() const |
1321 | | |
1322 | | private: |
1323 | | T value_; |
1324 | | }; |
1325 | | |
1326 | | // Specialization for lvalue reference types. See primary template |
1327 | | // for documentation. |
1328 | | template <typename T> |
1329 | | class ReferenceOrValueWrapper<T&> { |
1330 | | public: |
1331 | | // Workaround for debatable pass-by-reference lint warning (c-library-team |
1332 | | // policy precludes NOLINT in this context) |
1333 | | typedef T& reference; |
1334 | | explicit ReferenceOrValueWrapper(reference ref) |
1335 | | : value_ptr_(&ref) {} |
1336 | | T& Unwrap() { return *value_ptr_; } |
1337 | | const T& Peek() const { return *value_ptr_; } |
1338 | | |
1339 | | private: |
1340 | | T* value_ptr_; |
1341 | | }; |
1342 | | |
1343 | | // MSVC warns about using 'this' in base member initializer list, so |
1344 | | // we need to temporarily disable the warning. We have to do it for |
1345 | | // the entire class to suppress the warning, even though it's about |
1346 | | // the constructor only. |
1347 | | |
1348 | | #ifdef _MSC_VER |
1349 | | # pragma warning(push) // Saves the current warning state. |
1350 | | # pragma warning(disable:4355) // Temporarily disables warning 4355. |
1351 | | #endif // _MSV_VER |
1352 | | |
1353 | | // C++ treats the void type specially. For example, you cannot define |
1354 | | // a void-typed variable or pass a void value to a function. |
1355 | | // ActionResultHolder<T> holds a value of type T, where T must be a |
1356 | | // copyable type or void (T doesn't need to be default-constructable). |
1357 | | // It hides the syntactic difference between void and other types, and |
1358 | | // is used to unify the code for invoking both void-returning and |
1359 | | // non-void-returning mock functions. |
1360 | | |
1361 | | // Untyped base class for ActionResultHolder<T>. |
1362 | | class UntypedActionResultHolderBase { |
1363 | | public: |
1364 | 0 | virtual ~UntypedActionResultHolderBase() {} |
1365 | | |
1366 | | // Prints the held value as an action's result to os. |
1367 | | virtual void PrintAsActionResult(::std::ostream* os) const = 0; |
1368 | | }; |
1369 | | |
1370 | | // This generic definition is used when T is not void. |
1371 | | template <typename T> |
1372 | | class ActionResultHolder : public UntypedActionResultHolderBase { |
1373 | | public: |
1374 | | // Returns the held value. Must not be called more than once. |
1375 | 0 | T Unwrap() { |
1376 | 0 | return result_.Unwrap(); |
1377 | 0 | } Unexecuted instantiation: testing::internal::ActionResultHolder<nsresult>::Unwrap() Unexecuted instantiation: testing::internal::ActionResultHolder<mozilla::AccessibleCaret::PositionChangedResult>::Unwrap() Unexecuted instantiation: testing::internal::ActionResultHolder<mozilla::AccessibleCaretManager::CaretMode>::Unwrap() Unexecuted instantiation: testing::internal::ActionResultHolder<bool>::Unwrap() Unexecuted instantiation: testing::internal::ActionResultHolder<unsigned int>::Unwrap() Unexecuted instantiation: testing::internal::ActionResultHolder<JS::ubi::Node>::Unwrap() |
1378 | | |
1379 | | // Prints the held value as an action's result to os. |
1380 | 0 | virtual void PrintAsActionResult(::std::ostream* os) const { |
1381 | 0 | *os << "\n Returns: "; |
1382 | 0 | // T may be a reference type, so we don't use UniversalPrint(). |
1383 | 0 | UniversalPrinter<T>::Print(result_.Peek(), os); |
1384 | 0 | } Unexecuted instantiation: testing::internal::ActionResultHolder<nsresult>::PrintAsActionResult(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::ActionResultHolder<mozilla::AccessibleCaretManager::CaretMode>::PrintAsActionResult(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::ActionResultHolder<bool>::PrintAsActionResult(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::ActionResultHolder<mozilla::AccessibleCaret::PositionChangedResult>::PrintAsActionResult(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::ActionResultHolder<unsigned int>::PrintAsActionResult(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::ActionResultHolder<JS::ubi::Node>::PrintAsActionResult(std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const |
1385 | | |
1386 | | // Performs the given mock function's default action and returns the |
1387 | | // result in a new-ed ActionResultHolder. |
1388 | | template <typename F> |
1389 | | static ActionResultHolder* PerformDefaultAction( |
1390 | | const FunctionMockerBase<F>* func_mocker, |
1391 | | const typename Function<F>::ArgumentTuple& args, |
1392 | 0 | const string& call_description) { |
1393 | 0 | return new ActionResultHolder(Wrapper( |
1394 | 0 | func_mocker->PerformDefaultAction(args, call_description))); |
1395 | 0 | } Unexecuted instantiation: testing::internal::ActionResultHolder<nsresult>* testing::internal::ActionResultHolder<nsresult>::PerformDefaultAction<nsresult (nsPoint const&, mozilla::EventClassID)>(testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)> const*, testing::internal::Function<nsresult (nsPoint const&, mozilla::EventClassID)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<nsresult>* testing::internal::ActionResultHolder<nsresult>::PerformDefaultAction<nsresult (nsPoint const&)>(testing::internal::FunctionMockerBase<nsresult (nsPoint const&)> const*, testing::internal::Function<nsresult (nsPoint const&)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<nsresult>* testing::internal::ActionResultHolder<nsresult>::PerformDefaultAction<nsresult ()>(testing::internal::FunctionMockerBase<nsresult ()> const*, testing::internal::Function<nsresult ()>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<mozilla::AccessibleCaretManager::CaretMode>* testing::internal::ActionResultHolder<mozilla::AccessibleCaretManager::CaretMode>::PerformDefaultAction<mozilla::AccessibleCaretManager::CaretMode ()>(testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()> const*, testing::internal::Function<mozilla::AccessibleCaretManager::CaretMode ()>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformDefaultAction<bool (nsINode*)>(testing::internal::FunctionMockerBase<bool (nsINode*)> const*, testing::internal::Function<bool (nsINode*)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<mozilla::AccessibleCaret::PositionChangedResult>* testing::internal::ActionResultHolder<mozilla::AccessibleCaret::PositionChangedResult>::PerformDefaultAction<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>(testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)> const*, testing::internal::Function<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformDefaultAction<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>(testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)> const*, testing::internal::Function<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformDefaultAction<bool (unsigned long long, int)>(testing::internal::FunctionMockerBase<bool (unsigned long long, int)> const*, testing::internal::Function<bool (unsigned long long, int)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformDefaultAction<bool (unsigned long long, int, int, long)>(testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)> const*, testing::internal::Function<bool (unsigned long long, int, int, long)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformDefaultAction<bool (unsigned long long, int, int)>(testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)> const*, testing::internal::Function<bool (unsigned long long, int, int)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformDefaultAction<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>(testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const*, testing::internal::Function<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformDefaultAction<bool ()>(testing::internal::FunctionMockerBase<bool ()> const*, testing::internal::Function<bool ()>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformDefaultAction<bool (unsigned long long, bool)>(testing::internal::FunctionMockerBase<bool (unsigned long long, bool)> const*, testing::internal::Function<bool (unsigned long long, bool)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<unsigned int>* testing::internal::ActionResultHolder<unsigned int>::PerformDefaultAction<unsigned int (lul::PfxInstr)>(testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)> const*, testing::internal::Function<unsigned int (lul::PfxInstr)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<JS::ubi::Node>* testing::internal::ActionResultHolder<JS::ubi::Node>::PerformDefaultAction<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>(testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)> const*, testing::internal::Function<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformDefaultAction<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>(testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)> const*, testing::internal::Function<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformDefaultAction<bool (unsigned long)>(testing::internal::FunctionMockerBase<bool (unsigned long)> const*, testing::internal::Function<bool (unsigned long)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) |
1396 | | |
1397 | | // Performs the given action and returns the result in a new-ed |
1398 | | // ActionResultHolder. |
1399 | | template <typename F> |
1400 | | static ActionResultHolder* |
1401 | | PerformAction(const Action<F>& action, |
1402 | 0 | const typename Function<F>::ArgumentTuple& args) { |
1403 | 0 | return new ActionResultHolder(Wrapper(action.Perform(args))); |
1404 | 0 | } Unexecuted instantiation: testing::internal::ActionResultHolder<nsresult>* testing::internal::ActionResultHolder<nsresult>::PerformAction<nsresult (nsPoint const&, mozilla::EventClassID)>(testing::Action<nsresult (nsPoint const&, mozilla::EventClassID)> const&, testing::internal::Function<nsresult (nsPoint const&, mozilla::EventClassID)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<nsresult>* testing::internal::ActionResultHolder<nsresult>::PerformAction<nsresult (nsPoint const&)>(testing::Action<nsresult (nsPoint const&)> const&, testing::internal::Function<nsresult (nsPoint const&)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<nsresult>* testing::internal::ActionResultHolder<nsresult>::PerformAction<nsresult ()>(testing::Action<nsresult ()> const&, testing::internal::Function<nsresult ()>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<mozilla::AccessibleCaretManager::CaretMode>* testing::internal::ActionResultHolder<mozilla::AccessibleCaretManager::CaretMode>::PerformAction<mozilla::AccessibleCaretManager::CaretMode ()>(testing::Action<mozilla::AccessibleCaretManager::CaretMode ()> const&, testing::internal::Function<mozilla::AccessibleCaretManager::CaretMode ()>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformAction<bool (nsINode*)>(testing::Action<bool (nsINode*)> const&, testing::internal::Function<bool (nsINode*)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<mozilla::AccessibleCaret::PositionChangedResult>* testing::internal::ActionResultHolder<mozilla::AccessibleCaret::PositionChangedResult>::PerformAction<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>(testing::Action<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)> const&, testing::internal::Function<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformAction<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>(testing::Action<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)> const&, testing::internal::Function<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformAction<bool (unsigned long long, int)>(testing::Action<bool (unsigned long long, int)> const&, testing::internal::Function<bool (unsigned long long, int)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformAction<bool (unsigned long long, int, int, long)>(testing::Action<bool (unsigned long long, int, int, long)> const&, testing::internal::Function<bool (unsigned long long, int, int, long)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformAction<bool (unsigned long long, int, int)>(testing::Action<bool (unsigned long long, int, int)> const&, testing::internal::Function<bool (unsigned long long, int, int)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformAction<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>(testing::Action<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&, testing::internal::Function<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformAction<bool ()>(testing::Action<bool ()> const&, testing::internal::Function<bool ()>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformAction<bool (unsigned long long, bool)>(testing::Action<bool (unsigned long long, bool)> const&, testing::internal::Function<bool (unsigned long long, bool)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<unsigned int>* testing::internal::ActionResultHolder<unsigned int>::PerformAction<unsigned int (lul::PfxInstr)>(testing::Action<unsigned int (lul::PfxInstr)> const&, testing::internal::Function<unsigned int (lul::PfxInstr)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<JS::ubi::Node>* testing::internal::ActionResultHolder<JS::ubi::Node>::PerformAction<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>(testing::Action<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)> const&, testing::internal::Function<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformAction<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>(testing::Action<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)> const&, testing::internal::Function<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>* testing::internal::ActionResultHolder<bool>::PerformAction<bool (unsigned long)>(testing::Action<bool (unsigned long)> const&, testing::internal::Function<bool (unsigned long)>::ArgumentTuple const&) |
1405 | | |
1406 | | private: |
1407 | | typedef ReferenceOrValueWrapper<T> Wrapper; |
1408 | | |
1409 | | explicit ActionResultHolder(Wrapper result) |
1410 | 0 | : result_(::testing::internal::move(result)) { |
1411 | 0 | } Unexecuted instantiation: testing::internal::ActionResultHolder<nsresult>::ActionResultHolder(testing::internal::ReferenceOrValueWrapper<nsresult>) Unexecuted instantiation: testing::internal::ActionResultHolder<mozilla::AccessibleCaretManager::CaretMode>::ActionResultHolder(testing::internal::ReferenceOrValueWrapper<mozilla::AccessibleCaretManager::CaretMode>) Unexecuted instantiation: testing::internal::ActionResultHolder<bool>::ActionResultHolder(testing::internal::ReferenceOrValueWrapper<bool>) Unexecuted instantiation: testing::internal::ActionResultHolder<mozilla::AccessibleCaret::PositionChangedResult>::ActionResultHolder(testing::internal::ReferenceOrValueWrapper<mozilla::AccessibleCaret::PositionChangedResult>) Unexecuted instantiation: testing::internal::ActionResultHolder<unsigned int>::ActionResultHolder(testing::internal::ReferenceOrValueWrapper<unsigned int>) Unexecuted instantiation: testing::internal::ActionResultHolder<JS::ubi::Node>::ActionResultHolder(testing::internal::ReferenceOrValueWrapper<JS::ubi::Node>) |
1412 | | |
1413 | | Wrapper result_; |
1414 | | |
1415 | | GTEST_DISALLOW_COPY_AND_ASSIGN_(ActionResultHolder); |
1416 | | }; |
1417 | | |
1418 | | // Specialization for T = void. |
1419 | | template <> |
1420 | | class ActionResultHolder<void> : public UntypedActionResultHolderBase { |
1421 | | public: |
1422 | 0 | void Unwrap() { } |
1423 | | |
1424 | 0 | virtual void PrintAsActionResult(::std::ostream* /* os */) const {} |
1425 | | |
1426 | | // Performs the given mock function's default action and returns ownership |
1427 | | // of an empty ActionResultHolder*. |
1428 | | template <typename F> |
1429 | | static ActionResultHolder* PerformDefaultAction( |
1430 | | const FunctionMockerBase<F>* func_mocker, |
1431 | | const typename Function<F>::ArgumentTuple& args, |
1432 | 0 | const string& call_description) { |
1433 | 0 | func_mocker->PerformDefaultAction(args, call_description); |
1434 | 0 | return new ActionResultHolder; |
1435 | 0 | } Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (mozilla::SchedulerGroup::ValidationType)>(testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)> const*, testing::internal::Function<void (mozilla::SchedulerGroup::ValidationType)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void ()>(testing::internal::FunctionMockerBase<void ()> const*, testing::internal::Function<void ()>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (mozilla::layers::FrameMetrics const&)>(testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)> const*, testing::internal::Function<void (mozilla::layers::FrameMetrics const&)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>(testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)> const*, testing::internal::Function<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (unsigned long const&, unsigned int const&)>(testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)> const*, testing::internal::Function<void (unsigned long const&, unsigned int const&)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>(testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)> const*, testing::internal::Function<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>(testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)> const*, testing::internal::Function<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>(testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)> const*, testing::internal::Function<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (unsigned long const&)>(testing::internal::FunctionMockerBase<void (unsigned long const&)> const*, testing::internal::Function<void (unsigned long const&)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (mozilla::layers::ScrollableLayerGuid const&)>(testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)> const*, testing::internal::Function<void (mozilla::layers::ScrollableLayerGuid const&)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>(testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)> const*, testing::internal::Function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (mozilla::dom::CaretChangedReason)>(testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)> const*, testing::internal::Function<void (mozilla::dom::CaretChangedReason)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (unsigned long long, lul::CallFrameInfo::EntryKind)>(testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)> const*, testing::internal::Function<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (unsigned long long)>(testing::internal::FunctionMockerBase<void (unsigned long long)> const*, testing::internal::Function<void (unsigned long long)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (unsigned long long, unsigned long long)>(testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)> const*, testing::internal::Function<void (unsigned long long, unsigned long long)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (unsigned long long, int)>(testing::internal::FunctionMockerBase<void (unsigned long long, int)> const*, testing::internal::Function<void (unsigned long long, int)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>(testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const*, testing::internal::Function<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (unsigned long long, unsigned char)>(testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)> const*, testing::internal::Function<void (unsigned long long, unsigned char)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>(testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)> const*, testing::internal::Function<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (unsigned long, unsigned long)>(testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)> const*, testing::internal::Function<void (unsigned long, unsigned long)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformDefaultAction<void (unsigned long, int, lul::LExprHow, short, long)>(testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)> const*, testing::internal::Function<void (unsigned long, int, lul::LExprHow, short, long)>::ArgumentTuple const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) |
1436 | | |
1437 | | // Performs the given action and returns ownership of an empty |
1438 | | // ActionResultHolder*. |
1439 | | template <typename F> |
1440 | | static ActionResultHolder* PerformAction( |
1441 | | const Action<F>& action, |
1442 | 0 | const typename Function<F>::ArgumentTuple& args) { |
1443 | 0 | action.Perform(args); |
1444 | 0 | return new ActionResultHolder; |
1445 | 0 | } Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (mozilla::SchedulerGroup::ValidationType)>(testing::Action<void (mozilla::SchedulerGroup::ValidationType)> const&, testing::internal::Function<void (mozilla::SchedulerGroup::ValidationType)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void ()>(testing::Action<void ()> const&, testing::internal::Function<void ()>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (mozilla::layers::FrameMetrics const&)>(testing::Action<void (mozilla::layers::FrameMetrics const&)> const&, testing::internal::Function<void (mozilla::layers::FrameMetrics const&)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>(testing::Action<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)> const&, testing::internal::Function<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (unsigned long const&, unsigned int const&)>(testing::Action<void (unsigned long const&, unsigned int const&)> const&, testing::internal::Function<void (unsigned long const&, unsigned int const&)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>(testing::Action<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)> const&, testing::internal::Function<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>(testing::Action<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)> const&, testing::internal::Function<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>(testing::Action<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)> const&, testing::internal::Function<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (unsigned long const&)>(testing::Action<void (unsigned long const&)> const&, testing::internal::Function<void (unsigned long const&)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (mozilla::layers::ScrollableLayerGuid const&)>(testing::Action<void (mozilla::layers::ScrollableLayerGuid const&)> const&, testing::internal::Function<void (mozilla::layers::ScrollableLayerGuid const&)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>(testing::Action<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)> const&, testing::internal::Function<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (mozilla::dom::CaretChangedReason)>(testing::Action<void (mozilla::dom::CaretChangedReason)> const&, testing::internal::Function<void (mozilla::dom::CaretChangedReason)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (unsigned long long, lul::CallFrameInfo::EntryKind)>(testing::Action<void (unsigned long long, lul::CallFrameInfo::EntryKind)> const&, testing::internal::Function<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (unsigned long long)>(testing::Action<void (unsigned long long)> const&, testing::internal::Function<void (unsigned long long)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (unsigned long long, unsigned long long)>(testing::Action<void (unsigned long long, unsigned long long)> const&, testing::internal::Function<void (unsigned long long, unsigned long long)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (unsigned long long, int)>(testing::Action<void (unsigned long long, int)> const&, testing::internal::Function<void (unsigned long long, int)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>(testing::Action<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&, testing::internal::Function<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (unsigned long long, unsigned char)>(testing::Action<void (unsigned long long, unsigned char)> const&, testing::internal::Function<void (unsigned long long, unsigned char)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>(testing::Action<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)> const&, testing::internal::Function<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (unsigned long, unsigned long)>(testing::Action<void (unsigned long, unsigned long)> const&, testing::internal::Function<void (unsigned long, unsigned long)>::ArgumentTuple const&) Unexecuted instantiation: testing::internal::ActionResultHolder<void>* testing::internal::ActionResultHolder<void>::PerformAction<void (unsigned long, int, lul::LExprHow, short, long)>(testing::Action<void (unsigned long, int, lul::LExprHow, short, long)> const&, testing::internal::Function<void (unsigned long, int, lul::LExprHow, short, long)>::ArgumentTuple const&) |
1446 | | |
1447 | | private: |
1448 | 0 | ActionResultHolder() {} |
1449 | | GTEST_DISALLOW_COPY_AND_ASSIGN_(ActionResultHolder); |
1450 | | }; |
1451 | | |
1452 | | // The base of the function mocker class for the given function type. |
1453 | | // We put the methods in this class instead of its child to avoid code |
1454 | | // bloat. |
1455 | | template <typename F> |
1456 | | class FunctionMockerBase : public UntypedFunctionMockerBase { |
1457 | | public: |
1458 | | typedef typename Function<F>::Result Result; |
1459 | | typedef typename Function<F>::ArgumentTuple ArgumentTuple; |
1460 | | typedef typename Function<F>::ArgumentMatcherTuple ArgumentMatcherTuple; |
1461 | | |
1462 | 0 | FunctionMockerBase() : current_spec_(this) {} Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::FunctionMockerBase() |
1463 | | |
1464 | | // The destructor verifies that all expectations on this mock |
1465 | | // function have been satisfied. If not, it will report Google Test |
1466 | | // non-fatal failures for the violations. |
1467 | | virtual ~FunctionMockerBase() |
1468 | 0 | GTEST_LOCK_EXCLUDED_(g_gmock_mutex) { |
1469 | 0 | MutexLock l(&g_gmock_mutex); |
1470 | 0 | VerifyAndClearExpectationsLocked(); |
1471 | 0 | Mock::UnregisterLocked(this); |
1472 | 0 | ClearDefaultActionsLocked(); |
1473 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::~FunctionMockerBase() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::~FunctionMockerBase() |
1474 | | |
1475 | | // Returns the ON_CALL spec that matches this mock function with the |
1476 | | // given arguments; returns NULL if no matching ON_CALL is found. |
1477 | | // L = * |
1478 | | const OnCallSpec<F>* FindOnCallSpec( |
1479 | 0 | const ArgumentTuple& args) const { |
1480 | 0 | for (UntypedOnCallSpecs::const_reverse_iterator it |
1481 | 0 | = untyped_on_call_specs_.rbegin(); |
1482 | 0 | it != untyped_on_call_specs_.rend(); ++it) { |
1483 | 0 | const OnCallSpec<F>* spec = static_cast<const OnCallSpec<F>*>(*it); |
1484 | 0 | if (spec->Matches(args)) |
1485 | 0 | return spec; |
1486 | 0 | } |
1487 | 0 |
|
1488 | 0 | return NULL; |
1489 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::FindOnCallSpec(std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::FindOnCallSpec(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::FindOnCallSpec(std::__1::tuple<mozilla::layers::FrameMetrics const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::FindOnCallSpec(std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::FindOnCallSpec(std::__1::tuple<unsigned long const&, unsigned int const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::FindOnCallSpec(std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::FindOnCallSpec(std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::FindOnCallSpec(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::FindOnCallSpec(std::__1::tuple<unsigned long const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::FindOnCallSpec(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::FindOnCallSpec(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::FindOnCallSpec(std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::FindOnCallSpec(std::__1::tuple<nsPoint const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::FindOnCallSpec(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::FindOnCallSpec(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::FindOnCallSpec(std::__1::tuple<mozilla::dom::CaretChangedReason> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::FindOnCallSpec(std::__1::tuple<nsINode*> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::FindOnCallSpec(std::__1::tuple<nsIFrame*, int> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::FindOnCallSpec(std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::FindOnCallSpec(std::__1::tuple<unsigned long long, int> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::FindOnCallSpec(std::__1::tuple<unsigned long long, int, int, long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::FindOnCallSpec(std::__1::tuple<unsigned long long, int, int> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::FindOnCallSpec(std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::FindOnCallSpec(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::FindOnCallSpec(std::__1::tuple<unsigned long long, bool> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::FindOnCallSpec(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::FindOnCallSpec(std::__1::tuple<unsigned long long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::FindOnCallSpec(std::__1::tuple<unsigned long long, unsigned long long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::FindOnCallSpec(std::__1::tuple<unsigned long long, int> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::FindOnCallSpec(std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::FindOnCallSpec(std::__1::tuple<unsigned long long, unsigned char> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::FindOnCallSpec(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::FindOnCallSpec(std::__1::tuple<unsigned long, unsigned long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::FindOnCallSpec(std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::FindOnCallSpec(std::__1::tuple<lul::PfxInstr> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::FindOnCallSpec(std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::FindOnCallSpec(std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::FindOnCallSpec(std::__1::tuple<unsigned long> const&) const |
1490 | | |
1491 | | // Performs the default action of this mock function on the given |
1492 | | // arguments and returns the result. Asserts (or throws if |
1493 | | // exceptions are enabled) with a helpful call descrption if there |
1494 | | // is no valid return value. This method doesn't depend on the |
1495 | | // mutable state of this object, and thus can be called concurrently |
1496 | | // without locking. |
1497 | | // L = * |
1498 | | Result PerformDefaultAction(const ArgumentTuple& args, |
1499 | 0 | const string& call_description) const { |
1500 | 0 | const OnCallSpec<F>* const spec = |
1501 | 0 | this->FindOnCallSpec(args); |
1502 | 0 | if (spec != NULL) { |
1503 | 0 | return spec->GetAction().Perform(args); |
1504 | 0 | } |
1505 | 0 | const string message = call_description + |
1506 | 0 | "\n The mock function has no default action " |
1507 | 0 | "set, and its return type has no default value set."; |
1508 | | #if GTEST_HAS_EXCEPTIONS |
1509 | | if (!DefaultValue<Result>::Exists()) { |
1510 | | throw std::runtime_error(message); |
1511 | | } |
1512 | | #else |
1513 | | Assert(DefaultValue<Result>::Exists(), "", -1, message); |
1514 | 0 | #endif |
1515 | 0 | return DefaultValue<Result>::Get(); |
1516 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::PerformDefaultAction(std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::PerformDefaultAction(std::__1::tuple<> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::PerformDefaultAction(std::__1::tuple<mozilla::layers::FrameMetrics const&> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::PerformDefaultAction(std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::PerformDefaultAction(std::__1::tuple<unsigned long const&, unsigned int const&> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::PerformDefaultAction(std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::PerformDefaultAction(std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::PerformDefaultAction(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::PerformDefaultAction(std::__1::tuple<unsigned long const&> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::PerformDefaultAction(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::PerformDefaultAction(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::PerformDefaultAction(std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::PerformDefaultAction(std::__1::tuple<nsPoint const&> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::PerformDefaultAction(std::__1::tuple<> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::PerformDefaultAction(std::__1::tuple<> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::PerformDefaultAction(std::__1::tuple<mozilla::dom::CaretChangedReason> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::PerformDefaultAction(std::__1::tuple<nsINode*> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::PerformDefaultAction(std::__1::tuple<nsIFrame*, int> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::PerformDefaultAction(std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::PerformDefaultAction(std::__1::tuple<unsigned long long, int> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::PerformDefaultAction(std::__1::tuple<unsigned long long, int, int, long> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::PerformDefaultAction(std::__1::tuple<unsigned long long, int, int> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::PerformDefaultAction(std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::PerformDefaultAction(std::__1::tuple<> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::PerformDefaultAction(std::__1::tuple<unsigned long long, bool> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::PerformDefaultAction(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::PerformDefaultAction(std::__1::tuple<unsigned long long> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::PerformDefaultAction(std::__1::tuple<unsigned long long, unsigned long long> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::PerformDefaultAction(std::__1::tuple<unsigned long long, int> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::PerformDefaultAction(std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::PerformDefaultAction(std::__1::tuple<unsigned long long, unsigned char> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::PerformDefaultAction(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::PerformDefaultAction(std::__1::tuple<unsigned long, unsigned long> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::PerformDefaultAction(std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::PerformDefaultAction(std::__1::tuple<lul::PfxInstr> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::PerformDefaultAction(std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::PerformDefaultAction(std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::PerformDefaultAction(std::__1::tuple<unsigned long> const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const |
1517 | | |
1518 | | // Performs the default action with the given arguments and returns |
1519 | | // the action's result. The call description string will be used in |
1520 | | // the error message to describe the call in the case the default |
1521 | | // action fails. The caller is responsible for deleting the result. |
1522 | | // L = * |
1523 | | virtual UntypedActionResultHolderBase* UntypedPerformDefaultAction( |
1524 | | const void* untyped_args, // must point to an ArgumentTuple |
1525 | 0 | const string& call_description) const { |
1526 | 0 | const ArgumentTuple& args = |
1527 | 0 | *static_cast<const ArgumentTuple*>(untyped_args); |
1528 | 0 | return ResultHolder::PerformDefaultAction(this, args, call_description); |
1529 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::UntypedPerformDefaultAction(void const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const |
1530 | | |
1531 | | // Performs the given action with the given arguments and returns |
1532 | | // the action's result. The caller is responsible for deleting the |
1533 | | // result. |
1534 | | // L = * |
1535 | | virtual UntypedActionResultHolderBase* UntypedPerformAction( |
1536 | 0 | const void* untyped_action, const void* untyped_args) const { |
1537 | 0 | // Make a copy of the action before performing it, in case the |
1538 | 0 | // action deletes the mock object (and thus deletes itself). |
1539 | 0 | const Action<F> action = *static_cast<const Action<F>*>(untyped_action); |
1540 | 0 | const ArgumentTuple& args = |
1541 | 0 | *static_cast<const ArgumentTuple*>(untyped_args); |
1542 | 0 | return ResultHolder::PerformAction(action, args); |
1543 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::UntypedPerformAction(void const*, void const*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::UntypedPerformAction(void const*, void const*) const |
1544 | | |
1545 | | // Implements UntypedFunctionMockerBase::ClearDefaultActionsLocked(): |
1546 | | // clears the ON_CALL()s set on this mock function. |
1547 | | virtual void ClearDefaultActionsLocked() |
1548 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
1549 | 0 | g_gmock_mutex.AssertHeld(); |
1550 | 0 |
|
1551 | 0 | // Deleting our default actions may trigger other mock objects to be |
1552 | 0 | // deleted, for example if an action contains a reference counted smart |
1553 | 0 | // pointer to that mock object, and that is the last reference. So if we |
1554 | 0 | // delete our actions within the context of the global mutex we may deadlock |
1555 | 0 | // when this method is called again. Instead, make a copy of the set of |
1556 | 0 | // actions to delete, clear our set within the mutex, and then delete the |
1557 | 0 | // actions outside of the mutex. |
1558 | 0 | UntypedOnCallSpecs specs_to_delete; |
1559 | 0 | untyped_on_call_specs_.swap(specs_to_delete); |
1560 | 0 |
|
1561 | 0 | g_gmock_mutex.Unlock(); |
1562 | 0 | for (UntypedOnCallSpecs::const_iterator it = |
1563 | 0 | specs_to_delete.begin(); |
1564 | 0 | it != specs_to_delete.end(); ++it) { |
1565 | 0 | delete static_cast<const OnCallSpec<F>*>(*it); |
1566 | 0 | } |
1567 | 0 |
|
1568 | 0 | // Lock the mutex again, since the caller expects it to be locked when we |
1569 | 0 | // return. |
1570 | 0 | g_gmock_mutex.Lock(); |
1571 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::ClearDefaultActionsLocked() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::ClearDefaultActionsLocked() |
1572 | | |
1573 | | protected: |
1574 | | template <typename Function> |
1575 | | friend class MockSpec; |
1576 | | |
1577 | | typedef ActionResultHolder<Result> ResultHolder; |
1578 | | |
1579 | | // Returns the result of invoking this mock function with the given |
1580 | | // arguments. This function can be safely called from multiple |
1581 | | // threads concurrently. |
1582 | | Result InvokeWith(const ArgumentTuple& args) |
1583 | 0 | GTEST_LOCK_EXCLUDED_(g_gmock_mutex) { |
1584 | 0 | scoped_ptr<ResultHolder> holder( |
1585 | 0 | DownCast_<ResultHolder*>(this->UntypedInvokeWith(&args))); |
1586 | 0 | return holder->Unwrap(); |
1587 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::InvokeWith(std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::InvokeWith(std::__1::tuple<> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::InvokeWith(std::__1::tuple<mozilla::layers::FrameMetrics const&> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::InvokeWith(std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::InvokeWith(std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::InvokeWith(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::InvokeWith(std::__1::tuple<unsigned long const&> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::InvokeWith(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::InvokeWith(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::InvokeWith(std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::InvokeWith(std::__1::tuple<unsigned long const&, unsigned int const&> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::InvokeWith(std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::InvokeWith(std::__1::tuple<nsPoint const&> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::InvokeWith(std::__1::tuple<> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::InvokeWith(std::__1::tuple<nsIFrame*, int> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::InvokeWith(std::__1::tuple<> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::InvokeWith(std::__1::tuple<nsINode*> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::InvokeWith(std::__1::tuple<mozilla::dom::CaretChangedReason> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::InvokeWith(std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::InvokeWith(std::__1::tuple<unsigned long long, int> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::InvokeWith(std::__1::tuple<unsigned long long, int, int, long> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::InvokeWith(std::__1::tuple<unsigned long long, int, int> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::InvokeWith(std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::InvokeWith(std::__1::tuple<> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::InvokeWith(std::__1::tuple<unsigned long long, bool> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::InvokeWith(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::InvokeWith(std::__1::tuple<unsigned long long> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::InvokeWith(std::__1::tuple<unsigned long long, unsigned long long> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::InvokeWith(std::__1::tuple<unsigned long long, int> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::InvokeWith(std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::InvokeWith(std::__1::tuple<unsigned long long, unsigned char> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::InvokeWith(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::InvokeWith(std::__1::tuple<unsigned long, unsigned long> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::InvokeWith(std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::InvokeWith(std::__1::tuple<lul::PfxInstr> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::InvokeWith(std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::InvokeWith(std::__1::tuple<unsigned long> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::InvokeWith(std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&) |
1588 | | |
1589 | | // Adds and returns a default action spec for this mock function. |
1590 | | OnCallSpec<F>& AddNewOnCallSpec( |
1591 | | const char* file, int line, |
1592 | | const ArgumentMatcherTuple& m) |
1593 | | GTEST_LOCK_EXCLUDED_(g_gmock_mutex) { |
1594 | | Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line); |
1595 | | OnCallSpec<F>* const on_call_spec = new OnCallSpec<F>(file, line, m); |
1596 | | untyped_on_call_specs_.push_back(on_call_spec); |
1597 | | return *on_call_spec; |
1598 | | } |
1599 | | |
1600 | | // Adds and returns an expectation spec for this mock function. |
1601 | | TypedExpectation<F>& AddNewExpectation( |
1602 | | const char* file, |
1603 | | int line, |
1604 | | const string& source_text, |
1605 | | const ArgumentMatcherTuple& m) |
1606 | 0 | GTEST_LOCK_EXCLUDED_(g_gmock_mutex) { |
1607 | 0 | Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line); |
1608 | 0 | TypedExpectation<F>* const expectation = |
1609 | 0 | new TypedExpectation<F>(this, file, line, source_text, m); |
1610 | 0 | const linked_ptr<ExpectationBase> untyped_expectation(expectation); |
1611 | 0 | untyped_expectations_.push_back(untyped_expectation); |
1612 | 0 |
|
1613 | 0 | // Adds this expectation into the implicit sequence if there is one. |
1614 | 0 | Sequence* const implicit_sequence = g_gmock_implicit_sequence.get(); |
1615 | 0 | if (implicit_sequence != NULL) { |
1616 | 0 | implicit_sequence->AddExpectation(Expectation(untyped_expectation)); |
1617 | 0 | } |
1618 | 0 |
|
1619 | 0 | return *expectation; |
1620 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<mozilla::layers::FrameMetrics const&> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<mozilla::layers::ScrollableLayerGuid const&>, testing::Matcher<mozilla::layers::GeckoContentController::APZStateChange>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<mozilla::layers::GeckoContentController::TapType>, testing::Matcher<mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&>, testing::Matcher<unsigned short>, testing::Matcher<mozilla::layers::ScrollableLayerGuid const&>, testing::Matcher<unsigned long> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<mozilla::PinchGestureInput::PinchGestureType>, testing::Matcher<mozilla::layers::ScrollableLayerGuid const&>, testing::Matcher<mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float> >, testing::Matcher<unsigned short> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<nsPoint const&>, testing::Matcher<mozilla::EventClassID> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<nsPoint const&> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<nsIFrame*>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<mozilla::dom::CaretChangedReason> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<nsINode*> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<unsigned char> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<lul::CallFrameInfo::EntryKind>, testing::Matcher<unsigned long long> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int>, testing::Matcher<int>, testing::Matcher<long> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int>, testing::Matcher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<bool> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<> const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<lul::CallFrameInfo::EntryKind> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<unsigned long long> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<int> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long long>, testing::Matcher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<unsigned long>, testing::Matcher<unsigned long long>, testing::Matcher<unsigned long long>, testing::Matcher<unsigned char>, testing::Matcher<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>, testing::Matcher<unsigned int> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<lul::PfxInstr> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<JS::ubi::Node const&>, testing::Matcher<mozilla::devtools::CoreDumpWriter::EdgePolicy> > const&) Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::AddNewExpectation(char const*, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::tuple<testing::Matcher<mozilla::devtools::DeserializedEdge const&> > const&) |
1621 | | |
1622 | | // The current spec (either default action spec or expectation spec) |
1623 | | // being described on this function mocker. |
1624 | 0 | MockSpec<F>& current_spec() { return current_spec_; } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::current_spec() Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::current_spec() |
1625 | | |
1626 | | private: |
1627 | | template <typename Func> friend class TypedExpectation; |
1628 | | |
1629 | | // Some utilities needed for implementing UntypedInvokeWith(). |
1630 | | |
1631 | | // Describes what default action will be performed for the given |
1632 | | // arguments. |
1633 | | // L = * |
1634 | | void DescribeDefaultActionTo(const ArgumentTuple& args, |
1635 | 0 | ::std::ostream* os) const { |
1636 | 0 | const OnCallSpec<F>* const spec = FindOnCallSpec(args); |
1637 | 0 |
|
1638 | 0 | if (spec == NULL) { |
1639 | 0 | *os << (internal::type_equals<Result, void>::value ? |
1640 | 0 | "returning directly.\n" : |
1641 | 0 | "returning default value.\n"); |
1642 | 0 | } else { |
1643 | 0 | *os << "taking default action specified at:\n" |
1644 | 0 | << FormatFileLocation(spec->file(), spec->line()) << "\n"; |
1645 | 0 | } |
1646 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::DescribeDefaultActionTo(std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::DescribeDefaultActionTo(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::DescribeDefaultActionTo(std::__1::tuple<mozilla::layers::FrameMetrics const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long const&, unsigned int const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::DescribeDefaultActionTo(std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::DescribeDefaultActionTo(std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::DescribeDefaultActionTo(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::DescribeDefaultActionTo(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::DescribeDefaultActionTo(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::DescribeDefaultActionTo(std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::DescribeDefaultActionTo(std::__1::tuple<nsPoint const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::DescribeDefaultActionTo(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::DescribeDefaultActionTo(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::DescribeDefaultActionTo(std::__1::tuple<mozilla::dom::CaretChangedReason> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::DescribeDefaultActionTo(std::__1::tuple<nsINode*> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::DescribeDefaultActionTo(std::__1::tuple<nsIFrame*, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long long, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long long, int, int, long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long long, int, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::DescribeDefaultActionTo(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long long, bool> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long long, unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long long, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long long, unsigned char> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long, unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::DescribeDefaultActionTo(std::__1::tuple<lul::PfxInstr> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::DescribeDefaultActionTo(std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::DescribeDefaultActionTo(std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::DescribeDefaultActionTo(std::__1::tuple<unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const |
1647 | | |
1648 | | // Writes a message that the call is uninteresting (i.e. neither |
1649 | | // explicitly expected nor explicitly unexpected) to the given |
1650 | | // ostream. |
1651 | | virtual void UntypedDescribeUninterestingCall( |
1652 | | const void* untyped_args, |
1653 | | ::std::ostream* os) const |
1654 | 0 | GTEST_LOCK_EXCLUDED_(g_gmock_mutex) { |
1655 | 0 | const ArgumentTuple& args = |
1656 | 0 | *static_cast<const ArgumentTuple*>(untyped_args); |
1657 | 0 | *os << "Uninteresting mock function call - "; |
1658 | 0 | DescribeDefaultActionTo(args, os); |
1659 | 0 | *os << " Function call: " << Name(); |
1660 | 0 | UniversalPrint(args, os); |
1661 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::UntypedDescribeUninterestingCall(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const |
1662 | | |
1663 | | // Returns the expectation that matches the given function arguments |
1664 | | // (or NULL is there's no match); when a match is found, |
1665 | | // untyped_action is set to point to the action that should be |
1666 | | // performed (or NULL if the action is "do default"), and |
1667 | | // is_excessive is modified to indicate whether the call exceeds the |
1668 | | // expected number. |
1669 | | // |
1670 | | // Critical section: We must find the matching expectation and the |
1671 | | // corresponding action that needs to be taken in an ATOMIC |
1672 | | // transaction. Otherwise another thread may call this mock |
1673 | | // method in the middle and mess up the state. |
1674 | | // |
1675 | | // However, performing the action has to be left out of the critical |
1676 | | // section. The reason is that we have no control on what the |
1677 | | // action does (it can invoke an arbitrary user function or even a |
1678 | | // mock function) and excessive locking could cause a dead lock. |
1679 | | virtual const ExpectationBase* UntypedFindMatchingExpectation( |
1680 | | const void* untyped_args, |
1681 | | const void** untyped_action, bool* is_excessive, |
1682 | | ::std::ostream* what, ::std::ostream* why) |
1683 | 0 | GTEST_LOCK_EXCLUDED_(g_gmock_mutex) { |
1684 | 0 | const ArgumentTuple& args = |
1685 | 0 | *static_cast<const ArgumentTuple*>(untyped_args); |
1686 | 0 | MutexLock l(&g_gmock_mutex); |
1687 | 0 | TypedExpectation<F>* exp = this->FindMatchingExpectationLocked(args); |
1688 | 0 | if (exp == NULL) { // A match wasn't found. |
1689 | 0 | this->FormatUnexpectedCallMessageLocked(args, what, why); |
1690 | 0 | return NULL; |
1691 | 0 | } |
1692 | 0 | |
1693 | 0 | // This line must be done before calling GetActionForArguments(), |
1694 | 0 | // which will increment the call count for *exp and thus affect |
1695 | 0 | // its saturation status. |
1696 | 0 | *is_excessive = exp->IsSaturated(); |
1697 | 0 | const Action<F>* action = exp->GetActionForArguments(this, args, what, why); |
1698 | 0 | if (action != NULL && action->IsDoDefault()) |
1699 | 0 | action = NULL; // Normalize "do default" to NULL. |
1700 | 0 | *untyped_action = action; |
1701 | 0 | return exp; |
1702 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::UntypedFindMatchingExpectation(void const*, void const**, bool*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) |
1703 | | |
1704 | | // Prints the given function arguments to the ostream. |
1705 | | virtual void UntypedPrintArgs(const void* untyped_args, |
1706 | 0 | ::std::ostream* os) const { |
1707 | 0 | const ArgumentTuple& args = |
1708 | 0 | *static_cast<const ArgumentTuple*>(untyped_args); |
1709 | 0 | UniversalPrint(args, os); |
1710 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::UntypedPrintArgs(void const*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const |
1711 | | |
1712 | | // Returns the expectation that matches the arguments, or NULL if no |
1713 | | // expectation matches them. |
1714 | | TypedExpectation<F>* FindMatchingExpectationLocked( |
1715 | | const ArgumentTuple& args) const |
1716 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
1717 | 0 | g_gmock_mutex.AssertHeld(); |
1718 | 0 | for (typename UntypedExpectations::const_reverse_iterator it = |
1719 | 0 | untyped_expectations_.rbegin(); |
1720 | 0 | it != untyped_expectations_.rend(); ++it) { |
1721 | 0 | TypedExpectation<F>* const exp = |
1722 | 0 | static_cast<TypedExpectation<F>*>(it->get()); |
1723 | 0 | if (exp->ShouldHandleArguments(args)) { |
1724 | 0 | return exp; |
1725 | 0 | } |
1726 | 0 | } |
1727 | 0 | return NULL; |
1728 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::FindMatchingExpectationLocked(std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::FindMatchingExpectationLocked(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::FindMatchingExpectationLocked(std::__1::tuple<mozilla::layers::FrameMetrics const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long const&, unsigned int const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::FindMatchingExpectationLocked(std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::FindMatchingExpectationLocked(std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::FindMatchingExpectationLocked(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::FindMatchingExpectationLocked(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::FindMatchingExpectationLocked(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::FindMatchingExpectationLocked(std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::FindMatchingExpectationLocked(std::__1::tuple<nsPoint const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::FindMatchingExpectationLocked(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::FindMatchingExpectationLocked(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::FindMatchingExpectationLocked(std::__1::tuple<mozilla::dom::CaretChangedReason> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::FindMatchingExpectationLocked(std::__1::tuple<nsINode*> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::FindMatchingExpectationLocked(std::__1::tuple<nsIFrame*, int> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long long, int> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long long, int, int, long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long long, int, int> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::FindMatchingExpectationLocked(std::__1::tuple<> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long long, bool> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long long, unsigned long long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long long, int> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long long, unsigned char> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long, unsigned long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::FindMatchingExpectationLocked(std::__1::tuple<lul::PfxInstr> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::FindMatchingExpectationLocked(std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::FindMatchingExpectationLocked(std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::FindMatchingExpectationLocked(std::__1::tuple<unsigned long> const&) const |
1729 | | |
1730 | | // Returns a message that the arguments don't match any expectation. |
1731 | | void FormatUnexpectedCallMessageLocked( |
1732 | | const ArgumentTuple& args, |
1733 | | ::std::ostream* os, |
1734 | | ::std::ostream* why) const |
1735 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
1736 | 0 | g_gmock_mutex.AssertHeld(); |
1737 | 0 | *os << "\nUnexpected mock function call - "; |
1738 | 0 | DescribeDefaultActionTo(args, os); |
1739 | 0 | PrintTriedExpectationsLocked(args, why); |
1740 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::FormatUnexpectedCallMessageLocked(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<mozilla::layers::FrameMetrics const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long const&, unsigned int const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<nsPoint const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::FormatUnexpectedCallMessageLocked(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::FormatUnexpectedCallMessageLocked(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<mozilla::dom::CaretChangedReason> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<nsINode*> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<nsIFrame*, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long long, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long long, int, int, long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long long, int, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::FormatUnexpectedCallMessageLocked(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long long, bool> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long long, unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long long, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long long, unsigned char> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long, unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<lul::PfxInstr> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::FormatUnexpectedCallMessageLocked(std::__1::tuple<unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const |
1741 | | |
1742 | | // Prints a list of expectations that have been tried against the |
1743 | | // current mock function call. |
1744 | | void PrintTriedExpectationsLocked( |
1745 | | const ArgumentTuple& args, |
1746 | | ::std::ostream* why) const |
1747 | 0 | GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex) { |
1748 | 0 | g_gmock_mutex.AssertHeld(); |
1749 | 0 | const int count = static_cast<int>(untyped_expectations_.size()); |
1750 | 0 | *why << "Google Mock tried the following " << count << " " |
1751 | 0 | << (count == 1 ? "expectation, but it didn't match" : |
1752 | 0 | "expectations, but none matched") |
1753 | 0 | << ":\n"; |
1754 | 0 | for (int i = 0; i < count; i++) { |
1755 | 0 | TypedExpectation<F>* const expectation = |
1756 | 0 | static_cast<TypedExpectation<F>*>(untyped_expectations_[i].get()); |
1757 | 0 | *why << "\n"; |
1758 | 0 | expectation->DescribeLocationTo(why); |
1759 | 0 | if (count > 1) { |
1760 | 0 | *why << "tried expectation #" << i << ": "; |
1761 | 0 | } |
1762 | 0 | *why << expectation->source_text() << "...\n"; |
1763 | 0 | expectation->ExplainMatchResultTo(args, why); |
1764 | 0 | expectation->DescribeCallCountTo(why); |
1765 | 0 | } |
1766 | 0 | } Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::SchedulerGroup::ValidationType)>::PrintTriedExpectationsLocked(std::__1::tuple<mozilla::SchedulerGroup::ValidationType> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void ()>::PrintTriedExpectationsLocked(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::FrameMetrics const&)>::PrintTriedExpectationsLocked(std::__1::tuple<mozilla::layers::FrameMetrics const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long const&, mozilla::gfx::PointTyped<mozilla::CSSPixel, float> const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&, unsigned int const&)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long const&, unsigned int const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long)>::PrintTriedExpectationsLocked(std::__1::tuple<mozilla::layers::GeckoContentController::TapType, mozilla::gfx::PointTyped<mozilla::LayoutDevicePixel, float> const&, unsigned short, mozilla::layers::ScrollableLayerGuid const&, unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short)>::PrintTriedExpectationsLocked(std::__1::tuple<mozilla::PinchGestureInput::PinchGestureType, mozilla::layers::ScrollableLayerGuid const&, mozilla::gfx::CoordTyped<mozilla::LayoutDevicePixel, float>, unsigned short> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int)>::PrintTriedExpectationsLocked(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&, mozilla::layers::GeckoContentController::APZStateChange, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long const&)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::layers::ScrollableLayerGuid const&)>::PrintTriedExpectationsLocked(std::__1::tuple<mozilla::layers::ScrollableLayerGuid const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)>::PrintTriedExpectationsLocked(std::__1::tuple<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&, mozilla::EventClassID)>::PrintTriedExpectationsLocked(std::__1::tuple<nsPoint const&, mozilla::EventClassID> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult (nsPoint const&)>::PrintTriedExpectationsLocked(std::__1::tuple<nsPoint const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<nsresult ()>::PrintTriedExpectationsLocked(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaretManager::CaretMode ()>::PrintTriedExpectationsLocked(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (mozilla::dom::CaretChangedReason)>::PrintTriedExpectationsLocked(std::__1::tuple<mozilla::dom::CaretChangedReason> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (nsINode*)>::PrintTriedExpectationsLocked(std::__1::tuple<nsINode*> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<mozilla::AccessibleCaret::PositionChangedResult (nsIFrame*, int)>::PrintTriedExpectationsLocked(std::__1::tuple<nsIFrame*, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long, unsigned long long, unsigned long long, unsigned char, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long long, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int, long)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long long, int, int, long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, int)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long long, int, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long long, int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool ()>::PrintTriedExpectationsLocked(std::__1::tuple<> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long long, bool)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long long, bool> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned long long)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long long, unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, int)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long long, int> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long long, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, unsigned char)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long long, unsigned char> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long long, lul::CallFrameInfo::EntryKind, unsigned long long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, unsigned long)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long, unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<void (unsigned long, int, lul::LExprHow, short, long)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long, int, lul::LExprHow, short, long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<unsigned int (lul::PfxInstr)>::PrintTriedExpectationsLocked(std::__1::tuple<lul::PfxInstr> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<JS::ubi::Node (mozilla::devtools::DeserializedEdge const&)>::PrintTriedExpectationsLocked(std::__1::tuple<mozilla::devtools::DeserializedEdge const&> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy)>::PrintTriedExpectationsLocked(std::__1::tuple<JS::ubi::Node const&, mozilla::devtools::CoreDumpWriter::EdgePolicy> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const Unexecuted instantiation: testing::internal::FunctionMockerBase<bool (unsigned long)>::PrintTriedExpectationsLocked(std::__1::tuple<unsigned long> const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >*) const |
1767 | | |
1768 | | // The current spec (either default action spec or expectation spec) |
1769 | | // being described on this function mocker. |
1770 | | MockSpec<F> current_spec_; |
1771 | | |
1772 | | // There is no generally useful and implementable semantics of |
1773 | | // copying a mock object, so copying a mock is usually a user error. |
1774 | | // Thus we disallow copying function mockers. If the user really |
1775 | | // wants to copy a mock object, he should implement his own copy |
1776 | | // operation, for example: |
1777 | | // |
1778 | | // class MockFoo : public Foo { |
1779 | | // public: |
1780 | | // // Defines a copy constructor explicitly. |
1781 | | // MockFoo(const MockFoo& src) {} |
1782 | | // ... |
1783 | | // }; |
1784 | | GTEST_DISALLOW_COPY_AND_ASSIGN_(FunctionMockerBase); |
1785 | | }; // class FunctionMockerBase |
1786 | | |
1787 | | #ifdef _MSC_VER |
1788 | | # pragma warning(pop) // Restores the warning state. |
1789 | | #endif // _MSV_VER |
1790 | | |
1791 | | // Implements methods of FunctionMockerBase. |
1792 | | |
1793 | | // Verifies that all expectations on this mock function have been |
1794 | | // satisfied. Reports one or more Google Test non-fatal failures and |
1795 | | // returns false if not. |
1796 | | |
1797 | | // Reports an uninteresting call (whose description is in msg) in the |
1798 | | // manner specified by 'reaction'. |
1799 | | void ReportUninterestingCall(CallReaction reaction, const string& msg); |
1800 | | |
1801 | | } // namespace internal |
1802 | | |
1803 | | // The style guide prohibits "using" statements in a namespace scope |
1804 | | // inside a header file. However, the MockSpec class template is |
1805 | | // meant to be defined in the ::testing namespace. The following line |
1806 | | // is just a trick for working around a bug in MSVC 8.0, which cannot |
1807 | | // handle it if we define MockSpec in ::testing. |
1808 | | using internal::MockSpec; |
1809 | | |
1810 | | // Const(x) is a convenient function for obtaining a const reference |
1811 | | // to x. This is useful for setting expectations on an overloaded |
1812 | | // const mock method, e.g. |
1813 | | // |
1814 | | // class MockFoo : public FooInterface { |
1815 | | // public: |
1816 | | // MOCK_METHOD0(Bar, int()); |
1817 | | // MOCK_CONST_METHOD0(Bar, int&()); |
1818 | | // }; |
1819 | | // |
1820 | | // MockFoo foo; |
1821 | | // // Expects a call to non-const MockFoo::Bar(). |
1822 | | // EXPECT_CALL(foo, Bar()); |
1823 | | // // Expects a call to const MockFoo::Bar(). |
1824 | | // EXPECT_CALL(Const(foo), Bar()); |
1825 | | template <typename T> |
1826 | | inline const T& Const(const T& x) { return x; } |
1827 | | |
1828 | | // Constructs an Expectation object that references and co-owns exp. |
1829 | | inline Expectation::Expectation(internal::ExpectationBase& exp) // NOLINT |
1830 | | : expectation_base_(exp.GetHandle().expectation_base()) {} |
1831 | | |
1832 | | } // namespace testing |
1833 | | |
1834 | | // A separate macro is required to avoid compile errors when the name |
1835 | | // of the method used in call is a result of macro expansion. |
1836 | | // See CompilesWithMethodNameExpandedFromMacro tests in |
1837 | | // internal/gmock-spec-builders_test.cc for more details. |
1838 | | #define GMOCK_ON_CALL_IMPL_(obj, call) \ |
1839 | | ((obj).gmock_##call).InternalDefaultActionSetAt(__FILE__, __LINE__, \ |
1840 | | #obj, #call) |
1841 | | #define ON_CALL(obj, call) GMOCK_ON_CALL_IMPL_(obj, call) |
1842 | | |
1843 | | #define GMOCK_EXPECT_CALL_IMPL_(obj, call) \ |
1844 | 0 | ((obj).gmock_##call).InternalExpectedAt(__FILE__, __LINE__, #obj, #call) |
1845 | 0 | #define EXPECT_CALL(obj, call) GMOCK_EXPECT_CALL_IMPL_(obj, call) |
1846 | | |
1847 | | #endif // GMOCK_INCLUDE_GMOCK_GMOCK_SPEC_BUILDERS_H_ |