~3v1n0/unity/overlay-border-scale

« back to all changes in this revision

Viewing changes to standalone-clients/TestBGHash.cpp

  • Committer: Daniel van Vugt
  • Date: 2012-03-14 06:24:18 UTC
  • mfrom: (2108 unity)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: daniel.van.vugt@canonical.com-20120314062418-nprucpbr0m7qky5e
MergedĀ latestĀ lp:unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include "ubus-server.h"
27
27
#include "UBusMessages.h"
28
28
 
 
29
namespace
 
30
{
 
31
  nux::logging::Logger logger("unity.BGHash");
 
32
}
 
33
 
29
34
class TestRunner
30
35
{
31
36
public:
52
57
{
53
58
  nux::Color hash = bghash.CurrentColor ();
54
59
 
55
 
  g_debug ("hashed color: %f - %f - %f", hash.red, hash.green, hash.blue);
 
60
  LOG_DEBUG(logger) << "hashed color: " 
 
61
                    << hash.red << ", "
 
62
                    << hash.green << ", " 
 
63
                    << hash.blue;
56
64
 
57
65
}
58
66
 
79
87
  gdouble red, green, blue, alpha;
80
88
  g_variant_get (data, "(dddd)", &red, &green, &blue, &alpha);
81
89
 
82
 
  //g_debug ("new color: %f, %f, %f", red, green, blue);
 
90
  LOG_TRACE(logger) << "hashed color: " 
 
91
                    << red << ", "
 
92
                    << green << ", " 
 
93
                    << blue;
83
94
}
84
95
 
85
96
int main(int argc, char **argv)
98
109
  gtk_init (&argc, &argv);
99
110
 
100
111
  nux::NuxInitialize(0);
 
112
  // Slightly higher as we're more likely to test things we know will fail
 
113
  nux::logging::configure_logging("unity.BGHash=debug");
 
114
 
101
115
  nux::logging::configure_logging(::getenv("UNITY_LOG_SEVERITY"));
102
116
 
103
117
  unity::BGHash bg_hash;