A predicate that checks the key of a TestProperty against a known key. TestPropertyKeyIs is copyable.
| 738 | // |
| 739 | // TestPropertyKeyIs is copyable. |
| 740 | class TestPropertyKeyIs { |
| 741 | public: |
| 742 | // Constructor. |
| 743 | // |
| 744 | // TestPropertyKeyIs has NO default constructor. |
| 745 | explicit TestPropertyKeyIs(const std::string& key) : key_(key) {} |
| 746 | |
| 747 | // Returns true iff the test name of test property matches on key_. |
| 748 | bool operator()(const TestProperty& test_property) const { |
| 749 | return test_property.key() == key_; |
| 750 | } |
| 751 | |
| 752 | private: |
| 753 | std::string key_; |
| 754 | }; |
| 755 | |
| 756 | // Class UnitTestOptions. |
| 757 | // |