A predicate that checks the key of a TestProperty against a known key. TestPropertyKeyIs is copyable.
| 751 | // |
| 752 | // TestPropertyKeyIs is copyable. |
| 753 | class TestPropertyKeyIs { |
| 754 | public: |
| 755 | // Constructor. |
| 756 | // |
| 757 | // TestPropertyKeyIs has NO default constructor. |
| 758 | explicit TestPropertyKeyIs(const std::string& key) : key_(key) {} |
| 759 | |
| 760 | // Returns true iff the test name of test property matches on key_. |
| 761 | bool operator()(const TestProperty& test_property) const { |
| 762 | return test_property.key() == key_; |
| 763 | } |
| 764 | |
| 765 | private: |
| 766 | std::string key_; |
| 767 | }; |
| 768 | |
| 769 | // Class UnitTestOptions. |
| 770 | // |