~kdub/+junk/no-native

« back to all changes in this revision

Viewing changes to tests/unit-tests/logging/test_compositor_report.cpp

  • Committer: Kevin DuBois
  • Date: 2014-11-19 19:30:10 UTC
  • mfrom: (2060.1.11 native-ipc-operations)
  • Revision ID: kevin.dubois@canonical.com-20141119193010-0va4n207jzx32brt
merge base branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <string>
25
25
#include <cstdio>
26
26
 
27
 
using namespace mir;
28
27
using namespace std;
29
28
 
30
29
namespace mtd = mir::test::doubles;
 
30
namespace mrl = mir::report::logging;
 
31
namespace ml = mir::logging;
31
32
 
32
33
namespace
33
34
{
34
35
 
35
 
class Recorder : public logging::Logger
 
36
class Recorder : public ml::Logger
36
37
{
37
38
public:
38
 
    void log(Severity, string const& message, string const&)
 
39
    void log(ml::Severity, string const& message, string const&)
39
40
    {
40
41
        last = message;
41
42
    }
62
63
        std::make_shared<mtd::AdvanceableClock>();
63
64
    std::shared_ptr<Recorder> const recorder =
64
65
        make_shared<Recorder>();
65
 
    report::logging::CompositorReport report{recorder, clock};
 
66
    mrl::CompositorReport report{recorder, clock};
66
67
};
67
68
 
68
69
} // namespace