LEFT | RIGHT |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2009 University of Washington | 3 * Copyright (c) 2009 University of Washington |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 28 matching lines...) Expand all Loading... |
39 }; | 39 }; |
40 | 40 |
41 BasicTracedCallbackTestCase::BasicTracedCallbackTestCase () | 41 BasicTracedCallbackTestCase::BasicTracedCallbackTestCase () |
42 : TestCase ("Check basic TracedCallback operation") | 42 : TestCase ("Check basic TracedCallback operation") |
43 { | 43 { |
44 } | 44 } |
45 | 45 |
46 void | 46 void |
47 BasicTracedCallbackTestCase::CbOne (uint8_t a, double b) | 47 BasicTracedCallbackTestCase::CbOne (uint8_t a, double b) |
48 { | 48 { |
49 NS_UNUSED(a); | 49 NS_UNUSED (a); |
50 NS_UNUSED(b); | 50 NS_UNUSED (b); |
51 m_one = true; | 51 m_one = true; |
52 } | 52 } |
53 | 53 |
54 void | 54 void |
55 BasicTracedCallbackTestCase::CbTwo (uint8_t a, double b) | 55 BasicTracedCallbackTestCase::CbTwo (uint8_t a, double b) |
56 { | 56 { |
57 NS_UNUSED(a); | 57 NS_UNUSED (a); |
58 NS_UNUSED(b); | 58 NS_UNUSED (b); |
59 m_two = true; | 59 m_two = true; |
60 } | 60 } |
61 | 61 |
62 void | 62 void |
63 BasicTracedCallbackTestCase::DoRun (void) | 63 BasicTracedCallbackTestCase::DoRun (void) |
64 { | 64 { |
65 // | 65 // |
66 // Create a traced callback and connect it up to our target methods. All that | 66 // Create a traced callback and connect it up to our target methods. All that |
67 // these methods do is to set corresponding member variables m_one and m_two. | 67 // these methods do is to set corresponding member variables m_one and m_two. |
68 // | 68 // |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 TracedCallbackTestSuite (); | 119 TracedCallbackTestSuite (); |
120 }; | 120 }; |
121 | 121 |
122 TracedCallbackTestSuite::TracedCallbackTestSuite () | 122 TracedCallbackTestSuite::TracedCallbackTestSuite () |
123 : TestSuite ("traced-callback", UNIT) | 123 : TestSuite ("traced-callback", UNIT) |
124 { | 124 { |
125 AddTestCase (new BasicTracedCallbackTestCase, TestCase::QUICK); | 125 AddTestCase (new BasicTracedCallbackTestCase, TestCase::QUICK); |
126 } | 126 } |
127 | 127 |
128 static TracedCallbackTestSuite tracedCallbackTestSuite; | 128 static TracedCallbackTestSuite tracedCallbackTestSuite; |
LEFT | RIGHT |