Definition at line 31 of file fl_platform_plugin_test.cc.
◆ is_gtest_matcher [1/2]
◆ is_gtest_matcher [2/2]
◆ MethodCallMatcher() [1/2]
MethodCallMatcher::MethodCallMatcher |
( |
::testing::Matcher< std::string > |
name, |
|
|
::testing::Matcher< FlValue * > |
args |
|
) |
| |
|
inlineexplicit |
Definition at line 35 of file fl_platform_plugin_test.cc.
37 : name_(std::move(
name)), args_(std::move(
args)) {}
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
DEF_SWITCHES_START aot vmservice shared library name
◆ MethodCallMatcher() [2/2]
MethodCallMatcher::MethodCallMatcher |
( |
::testing::Matcher< std::string > |
name, |
|
|
::testing::Matcher< FlValue * > |
args |
|
) |
| |
|
inlineexplicit |
◆ DescribeNegationTo() [1/2]
void MethodCallMatcher::DescribeNegationTo |
( |
std::ostream * |
os | ) |
const |
|
inline |
Definition at line 70 of file fl_platform_plugin_test.cc.
70 {
71 *os << "method name ";
72 name_.DescribeNegationTo(os);
73 *os << " or args ";
74 args_.DescribeNegationTo(os);
75 }
◆ DescribeNegationTo() [2/2]
void MethodCallMatcher::DescribeNegationTo |
( |
std::ostream * |
os | ) |
const |
|
inline |
Definition at line 82 of file fl_text_input_plugin_test.cc.
82 {
83 *os << "method name ";
84 name_.DescribeNegationTo(os);
85 *os << " or args ";
86 args_.DescribeNegationTo(os);
87 }
◆ DescribeTo() [1/2]
void MethodCallMatcher::DescribeTo |
( |
std::ostream * |
os | ) |
const |
|
inline |
Definition at line 63 of file fl_platform_plugin_test.cc.
63 {
64 *os << "method name ";
65 name_.DescribeTo(os);
66 *os << " and args ";
67 args_.DescribeTo(os);
68 }
◆ DescribeTo() [2/2]
void MethodCallMatcher::DescribeTo |
( |
std::ostream * |
os | ) |
const |
|
inline |
Definition at line 75 of file fl_text_input_plugin_test.cc.
75 {
76 *os << "method name ";
77 name_.DescribeTo(os);
78 *os << " and args ";
79 args_.DescribeTo(os);
80 }
◆ MatchAndExplain() [1/2]
bool MethodCallMatcher::MatchAndExplain |
( |
GBytes * |
method_call, |
|
|
::testing::MatchResultListener * |
result_listener |
|
) |
| const |
|
inline |
Definition at line 39 of file fl_platform_plugin_test.cc.
40 {
42 g_autoptr(GError)
error =
nullptr;
43 g_autofree gchar*
name =
nullptr;
49 return false;
50 }
51 if (!name_.MatchAndExplain(
name, result_listener)) {
52 *result_listener <<
" where the name doesn't match: \"" <<
name <<
"\"";
53 return false;
54 }
55 if (!args_.MatchAndExplain(
args, result_listener)) {
56 *result_listener << " where the args don't match: "
58 return false;
59 }
60 return true;
61 }
G_MODULE_EXPORT FlJsonMethodCodec * fl_json_method_codec_new()
G_BEGIN_DECLS G_MODULE_EXPORT FlMethodCall * method_call
gboolean fl_method_codec_decode_method_call(FlMethodCodec *self, GBytes *message, gchar **name, FlValue **args, GError **error)
const uint8_t uint32_t uint32_t GError ** error
typedefG_BEGIN_DECLS struct _FlValue FlValue
static CStringUniquePtr PrintToString(const char *format,...)
◆ MatchAndExplain() [2/2]
bool MethodCallMatcher::MatchAndExplain |
( |
GBytes * |
method_call, |
|
|
::testing::MatchResultListener * |
result_listener |
|
) |
| const |
|
inline |
Definition at line 51 of file fl_text_input_plugin_test.cc.
52 {
54 g_autoptr(GError)
error =
nullptr;
55 g_autofree gchar*
name =
nullptr;
61 return false;
62 }
63 if (!name_.MatchAndExplain(
name, result_listener)) {
64 *result_listener <<
" where the name doesn't match: \"" <<
name <<
"\"";
65 return false;
66 }
67 if (!args_.MatchAndExplain(
args, result_listener)) {
68 *result_listener << " where the args don't match: "
70 return false;
71 }
72 return true;
73 }
The documentation for this class was generated from the following files: