~thomas-voss/location-service/flatten

« back to all changes in this revision

Viewing changes to tests/default_permission_manager_test.cpp

  • Committer: thomas-voss
  • Date: 2015-02-03 12:21:33 UTC
  • Revision ID: thomas.voss@canonical.com-20150203122133-660kjot28cz7dx6m
Adjust namespace to core::location for all classes not in com::ubuntu::location::connectivity.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
TEST(DefaultPermissionManager, for_now_only_local_sessions_are_accepted)
25
25
{
26
 
    //com::ubuntu::location::Credentials invalid_credentials{0, 0};
27
 
    com::ubuntu::location::service::Credentials valid_credentials{getpid(), getuid()};
28
 
    com::ubuntu::location::service::DefaultPermissionManager pm;
29
 
    /*EXPECT_EQ(com::ubuntu::location::DefaultPermissionManager::Result::rejected,
30
 
              pm.check_permission_for_credentials(com::ubuntu::location::Criteria {},
 
26
    //core::location::Credentials invalid_credentials{0, 0};
 
27
    core::location::service::Credentials valid_credentials{getpid(), getuid()};
 
28
    core::location::service::DefaultPermissionManager pm;
 
29
    /*EXPECT_EQ(core::location::DefaultPermissionManager::Result::rejected,
 
30
              pm.check_permission_for_credentials(core::location::Criteria {},
31
31
              invalid_credentials));*/
32
 
    EXPECT_EQ(com::ubuntu::location::service::PermissionManager::Result::granted,
33
 
              pm.check_permission_for_credentials(com::ubuntu::location::Criteria {},
 
32
    EXPECT_EQ(core::location::service::PermissionManager::Result::granted,
 
33
              pm.check_permission_for_credentials(core::location::Criteria {},
34
34
                                                  valid_credentials));
35
35
}