~dobey/unity-scope-click/check-purchased

« back to all changes in this revision

Viewing changes to libclickscope/tests/test_departments.cpp

  • Committer: Rodney Dawes
  • Date: 2014-07-16 21:49:11 UTC
  • mfrom: (314.2.19 devel)
  • Revision ID: rodney.dawes@canonical.com-20140716214911-3vn31avz0lwzcn2e
Merge tip of devel branch.
Move mock pay code to mock_pay.h.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    auto it = depts.cbegin();
41
41
    {
42
42
        auto dep = *it;
43
 
        EXPECT_EQ("Games", dep->id());
 
43
        EXPECT_EQ("games", dep->id());
44
44
        EXPECT_EQ("Games", dep->name());
45
45
        EXPECT_EQ("https://search.apps.ubuntu.com/api/v1/departments/Games", dep->href());
46
46
        EXPECT_FALSE(dep->has_children_flag());
52
52
    {
53
53
        ++it;
54
54
        auto dep = *it;
55
 
        EXPECT_EQ("Graphics", dep->id());
 
55
        EXPECT_EQ("graphics", dep->id());
56
56
        EXPECT_EQ("Graphics", dep->name());
57
57
        EXPECT_EQ("https://search.apps.ubuntu.com/api/v1/departments/Graphics", dep->href());
58
58
        EXPECT_FALSE(dep->has_children_flag());
64
64
    {
65
65
        ++it;
66
66
        auto dep = *it;
67
 
        EXPECT_EQ("Internet", dep->id());
 
67
        EXPECT_EQ("internet", dep->id());
68
68
        EXPECT_EQ("Internet", dep->name());
69
69
        EXPECT_EQ("https://search.apps.ubuntu.com/api/v1/departments/Internet", dep->href());
70
70
        EXPECT_FALSE(dep->has_children_flag());