equal
deleted
inserted
replaced
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // |
14 // |
15 |
15 |
16 // EPOC includes |
16 // EPOC includes |
|
17 #include <e32property.h> |
17 #include <e32base.h> |
18 #include <e32base.h> |
18 |
19 |
19 // Test system includes |
20 // Test system includes |
20 #include <networking/log.h> |
21 #include <networking/log.h> |
21 #include <networking/testsuite.h> |
22 #include <networking/testsuite.h> |
22 |
23 |
23 // Test includes |
24 // Test includes |
24 #include "ts_esockutilsteps.h" |
25 #include "ts_esockutilsteps.h" |
25 #include "esockloader.h" |
26 #include "esockloader.h" |
26 #include "esocktestutils.h" |
27 #include "esocktestutils.h" |
|
28 #include <comms-infras/es_availability.h> |
27 |
29 |
28 class TTruncateOverflow16 : public TDes16Overflow |
30 class TTruncateOverflow16 : public TDes16Overflow |
29 { |
31 { |
30 public: |
32 public: |
31 virtual void Overflow(TDes16&) |
33 virtual void Overflow(TDes16&) |
153 default: |
155 default: |
154 { |
156 { |
155 INFO_PRINTF2(_L("UnloadESock returned error %d"), err); |
157 INFO_PRINTF2(_L("UnloadESock returned error %d"), err); |
156 } |
158 } |
157 } |
159 } |
|
160 |
|
161 // Explicitly reset pubsub keys used for controlling bearer availability during testing |
|
162 const TInt KMaxLikelyAvailabilityAccessPoints = 32; |
|
163 const TInt KDummyNifTestingPubSubUid = 0x10272F42; |
|
164 INFO_PRINTF1(_L("Resetting availability pubsub keys")); |
|
165 for(TInt i = 0; i < KMaxLikelyAvailabilityAccessPoints; i++) |
|
166 { |
|
167 // Harmless if the key doesn't exist - so we can ignore the return code |
|
168 RProperty::Set(TUid::Uid(KDummyNifTestingPubSubUid), i, ESock::TAvailabilityStatus::EMaxAvailabilityScore); |
|
169 } |
|
170 |
158 return verdict; |
171 return verdict; |
159 } |
172 } |
160 |
173 |
161 CTestStepUnloadESockForced::CTestStepUnloadESockForced() : |
174 CTestStepUnloadESockForced::CTestStepUnloadESockForced() : |
162 CTestStepUnloadESockBase(CTestStepUnloadESockBase::ENoLeak) |
175 CTestStepUnloadESockBase(CTestStepUnloadESockBase::ENoLeak) |