1
1
#include " constants.h"
2
2
3
+ #include " expect_command.h"
3
4
#include " expect_target.h"
5
+
4
6
#include " target/target.h"
5
7
6
8
#include " env/env.h"
@@ -48,8 +50,8 @@ TEST(TargetTestCppCompileFlagsGroup, Target_AddCompileFlag) {
48
50
simple.AddSource (DUMMY_MAIN);
49
51
simple.AddCppCompileFlag (" -std=c++17" );
50
52
51
- buildcc::internal:: m::CommandExpect_Execute (1 , true );
52
- buildcc::internal:: m::CommandExpect_Execute (1 , true );
53
+ buildcc::m::CommandExpect_Execute (1 , true );
54
+ buildcc::m::CommandExpect_Execute (1 , true );
53
55
simple.Build ();
54
56
55
57
mock ().checkExpectations ();
@@ -78,8 +80,8 @@ TEST(TargetTestCppCompileFlagsGroup, Target_ChangedCompileFlag) {
78
80
simple.AddSource (DUMMY_MAIN);
79
81
simple.AddCCompileFlag (" -std=c++17" );
80
82
81
- buildcc::internal:: m::CommandExpect_Execute (1 , true );
82
- buildcc::internal:: m::CommandExpect_Execute (1 , true );
83
+ buildcc::m::CommandExpect_Execute (1 , true );
84
+ buildcc::m::CommandExpect_Execute (1 , true );
83
85
simple.Build ();
84
86
}
85
87
{
@@ -88,8 +90,8 @@ TEST(TargetTestCppCompileFlagsGroup, Target_ChangedCompileFlag) {
88
90
gcc, " data" );
89
91
simple.AddSource (DUMMY_MAIN);
90
92
buildcc::base::m::TargetExpect_FlagChanged (1 , &simple);
91
- buildcc::internal:: m::CommandExpect_Execute (1 , true );
92
- buildcc::internal:: m::CommandExpect_Execute (1 , true );
93
+ buildcc::m::CommandExpect_Execute (1 , true );
94
+ buildcc::m::CommandExpect_Execute (1 , true );
93
95
simple.Build ();
94
96
}
95
97
@@ -100,8 +102,8 @@ TEST(TargetTestCppCompileFlagsGroup, Target_ChangedCompileFlag) {
100
102
simple.AddSource (DUMMY_MAIN);
101
103
simple.AddCCompileFlag (" -std=c++17" );
102
104
buildcc::base::m::TargetExpect_FlagChanged (1 , &simple);
103
- buildcc::internal:: m::CommandExpect_Execute (1 , true );
104
- buildcc::internal:: m::CommandExpect_Execute (1 , true );
105
+ buildcc::m::CommandExpect_Execute (1 , true );
106
+ buildcc::m::CommandExpect_Execute (1 , true );
105
107
simple.Build ();
106
108
}
107
109
0 commit comments