author | Nicola Baldo <nbaldo@cttc.es> |
Thu, 16 Apr 2015 12:54:24 +0200 | |
changeset 11322 | dcc99192ba63 |
parent 11320 | 2275965b535b |
parent 10553 | 8c347165bb56 |
permissions | -rw-r--r-- |
8619
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
1 |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */ |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
2 |
/* |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
3 |
* Copyright (c) 2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC) |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
4 |
* |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License version 2 as |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation; |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
8 |
* |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
13 |
* |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
17 |
* |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
18 |
* Author: Manuel Requena <manuel.requena@cttc.es> |
11320
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
19 |
* Nicola Baldo <nbaldo@cttc.es> |
8619
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
20 |
*/ |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
21 |
|
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
22 |
#ifndef LTE_TEST_RLC_AM_E2E_H |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
23 |
#define LTE_TEST_RLC_AM_E2E_H |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
24 |
|
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
25 |
#include "ns3/test.h" |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
26 |
|
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
27 |
|
10553
8c347165bb56
Move tests outside ns3 namespace
Vedran Miletić <rivanvx@gmail.com>
parents:
8822
diff
changeset
|
28 |
using namespace ns3; |
8619
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
29 |
|
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
30 |
|
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
31 |
/** |
11320
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
32 |
* Provides the test suite lte-rlc-am-e2e. See the testing section of |
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
33 |
* the LTE module documentation for details. |
8619
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
34 |
*/ |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
35 |
class LteRlcAmE2eTestSuite : public TestSuite |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
36 |
{ |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
37 |
public: |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
38 |
LteRlcAmE2eTestSuite (); |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
39 |
}; |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
40 |
|
11320
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
41 |
/** |
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
42 |
* Test cases used for the test suite lte-rlc-am-e2e. See the testing section of |
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
43 |
* the LTE module documentation for details. |
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
44 |
* |
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
45 |
*/ |
8619
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
46 |
class LteRlcAmE2eTestCase : public TestCase |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
47 |
{ |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
48 |
public: |
11320
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
49 |
LteRlcAmE2eTestCase (std::string name, uint32_t seed, double losses, bool bulkSduArrival); |
8619
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
50 |
LteRlcAmE2eTestCase (); |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
51 |
virtual ~LteRlcAmE2eTestCase (); |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
52 |
|
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
53 |
private: |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
54 |
virtual void DoRun (void); |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
55 |
|
8627
9e9ac5b3fd5b
Fix variables for dropped packets
Manuel Requena <manuel.requena@cttc.es>
parents:
8619
diff
changeset
|
56 |
void DlDropEvent (Ptr<const Packet> p); |
9e9ac5b3fd5b
Fix variables for dropped packets
Manuel Requena <manuel.requena@cttc.es>
parents:
8619
diff
changeset
|
57 |
void UlDropEvent (Ptr<const Packet> p); |
8619
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
58 |
|
11320
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
59 |
uint32_t m_run; |
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
60 |
double m_losses; |
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
61 |
bool m_bulkSduArrival; |
2275965b535b
specialized lte-rlc-am-e2e test cases into bulk and continuous SDU arrival
Nicola Baldo <nbaldo@cttc.es>
parents:
11304
diff
changeset
|
62 |
|
8627
9e9ac5b3fd5b
Fix variables for dropped packets
Manuel Requena <manuel.requena@cttc.es>
parents:
8619
diff
changeset
|
63 |
uint32_t m_dlDrops; |
9e9ac5b3fd5b
Fix variables for dropped packets
Manuel Requena <manuel.requena@cttc.es>
parents:
8619
diff
changeset
|
64 |
uint32_t m_ulDrops; |
8619
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
65 |
|
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
66 |
}; |
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
67 |
|
1fc386c8148c
Add new tests for RLC AM
Manuel Requena <manuel.requena@cttc.es>
parents:
diff
changeset
|
68 |
#endif // LTE_TEST_RLC_AM_E2E_H |