Changeset 315 in pacpusframework for trunk/src/FileLib/test
- Timestamp:
- Jul 28, 2014, 5:11:27 PM (11 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  trunk/src/FileLib/test/TestFileLib.cpp (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/src/FileLib/test/TestFileLib.cppr312 r315 77 77 }; 78 78 79 template <typename ErrorInfo> 80 struct HasErrorInfo<ErrorInfo, char const*> 81 : noncopyable 82 { 83 private: 84 typedef char const* E; 85 public: 86 HasErrorInfo(E const& expectedValue) 87 : mExpectedValue(expectedValue) 88 { 89 } 90 91 bool operator()(DbiteException const& ex) 92 { 93 LOG_INFO("diagnostic_information: " << diagnostic_information(ex)); 94 E const* value = get_error_info<ErrorInfo>(ex); 95 if (!value) { 96 return false; 97 } 98 return std::string(mExpectedValue) == std::string(*value); 99 } 100 101 private: 102 E const mExpectedValue; 103 }; 104 79 105 BOOST_AUTO_TEST_SUITE(suiteBasic) 80 106 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
