Browse code
checkpoint
Greg Wiley authored on 03/05/2017 20:12:39
Showing 4 changed files
Showing 4 changed files
... | ... |
@@ -1,10 +1,10 @@ |
1 | 1 |
#include <string> |
2 | 2 |
#include <iostream> |
3 | 3 |
|
4 |
-#include "dual_control_tool.h" |
|
4 |
+#include "installer.h" |
|
5 | 5 |
|
6 | 6 |
int main(int argc, char *argv[]) { |
7 |
- dual_control_tool tool; |
|
7 |
+ installer tool; |
|
8 | 8 |
std::string generated_token = tool.install_token(); |
9 | 9 |
std::cout << generated_token << std::endl; |
10 | 10 |
return 0; |
11 | 11 |
similarity index 51% |
12 | 12 |
rename from dual_control_tool.h |
13 | 13 |
rename to installer.h |
... | ... |
@@ -1,7 +1,13 @@ |
1 |
+#ifndef INSTALLER_H_ |
|
2 |
+#define INSTALLER_H_ |
|
1 | 3 |
|
2 |
-class dual_control_tool { |
|
4 |
+#include <string> |
|
5 |
+ |
|
6 |
+class installer { |
|
3 | 7 |
public: |
4 | 8 |
std::string install_token() { |
5 | 9 |
return "123456"; |
6 | 10 |
} |
7 | 11 |
}; |
12 |
+ |
|
13 |
+#endif |
8 | 14 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,19 @@ |
1 |
+#include "installer.h" |
|
2 |
+ |
|
3 |
+int first_test() { |
|
4 |
+ //given |
|
5 |
+/* generator generator |
|
6 |
+ tokens tokens |
|
7 |
+ installer installer //= create (generator, tokens); |
|
8 |
+ |
|
9 |
+ //when |
|
10 |
+ installer.install_token(); |
|
11 |
+ |
|
12 |
+ //then |
|
13 |
+ tokens.captured user == expected user |
|
14 |
+ token.captured token == generated token |
|
15 |
+*/ |
|
16 |
+} |
|
17 |
+ |
|
18 |
+int main(int argc, char *argv[]) {return 0;} |
|
19 |
+ |