FileUnitTest.hpp
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:1k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. /* Copyright (C) 2003 MySQL AB
  2.    This program is free software; you can redistribute it and/or modify
  3.    it under the terms of the GNU General Public License as published by
  4.    the Free Software Foundation; either version 2 of the License, or
  5.    (at your option) any later version.
  6.    This program is distributed in the hope that it will be useful,
  7.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9.    GNU General Public License for more details.
  10.    You should have received a copy of the GNU General Public License
  11.    along with this program; if not, write to the Free Software
  12.    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
  13. #ifndef FILEUNITTEST_H
  14. #define FILEUNITTEST_H
  15. /**
  16.  * Unit test of File.
  17.  *
  18.  * @version #@ $Id: FileUnitTest.hpp,v 1.1 2002/03/13 18:09:03 eyualex Exp $
  19.  */
  20. class FileUnitTest
  21. {
  22. public:
  23.   static bool testWrite(const char* aFileName);
  24.   static bool testRead(const char* aFileName);
  25.   static bool testExists(const char* aFileName);
  26.   static bool testSize(const char* aFileName);
  27.   static bool testRename(const char* aFileName);
  28.   static bool testRemove(const char* aFileName);
  29.   
  30.   static void error(const char* msg);
  31. private:
  32.   FileUnitTest();
  33.   ~FileUnitTest();
  34.   
  35. };
  36. #endif