~oif-team/grail/trunk

« back to all changes in this revision

Viewing changes to test/integration/recording.cpp

  • Committer: Chase Douglas
  • Date: 2012-07-25 23:09:08 UTC
  • mfrom: (229.2.4 grail)
  • Revision ID: chase.douglas@canonical.com-20120725230908-1l25qh2ex2ueanqj
Merge in project rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <stdexcept>
25
25
 
26
 
utouch::evemu::Recording::Recording(const Device& device, const char* file)
 
26
oif::evemu::Recording::Recording(const Device& device, const char* file)
27
27
    : device_(device),
28
28
      file_(fopen(file, "r")) {
29
29
  if (!file_)
30
30
    throw std::runtime_error("Failed to open evemu recording");
31
31
}
32
32
 
33
 
void utouch::evemu::Recording::Play() const {
 
33
void oif::evemu::Recording::Play() const {
34
34
  rewind(file_);
35
35
  if (evemu_play(file_, device_.fd()) != 0)
36
36
    throw std::runtime_error("Failed to play evemu recording");
37
37
}
38
38
 
39
 
utouch::evemu::Recording::~Recording() {
 
39
oif::evemu::Recording::~Recording() {
40
40
  fclose(file_);
41
41
}