~phablet-team/aethercast/fix-for-microsoft-dongle

« back to all changes in this revision

Viewing changes to tests/mcs/common/threadedexecutor_tests.cpp

  • Committer: Simon Fels
  • Date: 2016-03-30 08:13:42 UTC
  • mto: (130.3.5 ac-fix-all-warnings)
  • mto: This revision was merged to the branch mainline in revision 132.
  • Revision ID: simon.fels@canonical.com-20160330081342-bbp0wanvox502kuk
Fix review comments

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
            .Times(AtLeast(0))
50
50
            .WillRepeatedly(Return(true));
51
51
 
52
 
    auto executor = std::make_shared<mcs::common::ThreadedExecutor>(executable);
 
52
    const auto executor = std::make_shared<mcs::common::ThreadedExecutor>(executable);
53
53
 
54
54
    EXPECT_FALSE(executor->Running());
55
55
    EXPECT_FALSE(executor->Stop());
77
77
            .Times(AtLeast(10))
78
78
            .WillRepeatedly(DoAll(Invoke([&]() { count++; running = count < 10; }), ReturnPointee(&running)));
79
79
 
80
 
    auto executor = std::make_shared<mcs::common::ThreadedExecutor>(executable);
 
80
    const auto executor = std::make_shared<mcs::common::ThreadedExecutor>(executable);
81
81
 
82
82
    EXPECT_TRUE(executor->Start());
83
83
 
95
95
            .Times(1)
96
96
            .WillOnce(Return(false));
97
97
 
98
 
    auto executor = std::make_shared<mcs::common::ThreadedExecutor>(executable);
 
98
    const auto executor = std::make_shared<mcs::common::ThreadedExecutor>(executable);
99
99
 
100
100
    EXPECT_FALSE(executor->Start());
101
101
    EXPECT_FALSE(executor->Running());
112
112
            .Times(1)
113
113
            .WillOnce(Return(false));
114
114
 
115
 
    auto executor = std::make_shared<mcs::common::ThreadedExecutor>(executable);
 
115
    const auto executor = std::make_shared<mcs::common::ThreadedExecutor>(executable);
116
116
 
117
117
    EXPECT_TRUE(executor->Start());
118
118
    EXPECT_TRUE(executor->Stop());