| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#pragma once |
| 23 |
|
| 24 |
#include <QString> |
| 25 |
#include <QSharedData> |
| 26 |
|
| 27 |
#include <dgiofile.h> |
| 28 |
|
| 29 |
class Stub; |
| 30 |
|
| 31 |
class Mock_Mount |
| 32 |
{ |
| 33 |
public: |
| 34 |
Mock_Mount(const QString &mountPoint); |
| 35 |
~Mock_Mount(); |
| 36 |
|
| 37 |
化挂载测试 |
| 38 |
void initMountMock(); |
| 39 |
|
| 40 |
载设备准备 |
| 41 |
void setToUmountDevice(); |
| 42 |
|
| 43 |
的桩函数 |
| 44 |
QString stub_DGioMount_name(); |
| 45 |
QExplicitlySharedDataPointer<DGioFile> stub_DGioMount_getRootFile(); |
| 46 |
bool stub_DGioMount_canEject() const; |
| 47 |
QExplicitlySharedDataPointer<DGioFile> stub_DGioMount_getDefaultLocationFile(); |
| 48 |
|
| 49 |
的桩函数 |
| 50 |
QString stub_DGioFile_uri(); |
| 51 |
QString stub_DGioFile_path(); |
| 52 |
|
| 53 |
的桩函数 |
| 54 |
const QList<QExplicitlySharedDataPointer<DGioMount> > stub_DGioVolumeManager_getMounts(); 态函数,打桩有点难度 |
| 55 |
|
| 56 |
private: |
| 57 |
桩工具 |
| 58 |
Stub *stub; |
| 59 |
|
| 60 |
保存位置 |
| 61 |
static QString mountPoint; |
| 62 |
}; |