equal
deleted
inserted
replaced
21 #include "testagentmanager.h" |
21 #include "testagentmanager.h" |
22 #include "testagentattributes.h" |
22 #include "testagentattributes.h" |
23 #include "TestAgentFile.h" |
23 #include "TestAgentFile.h" |
24 #include "TestAgentDrmContent.h" |
24 #include "TestAgentDrmContent.h" |
25 #include <stringpool.h> |
25 #include <stringpool.h> |
|
26 #ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY |
26 #include <http.h> |
27 #include <http.h> |
27 #include <http/rhttpheaders.h> |
28 #include <http/rhttpheaders.h> |
|
29 #endif |
28 #include <stringpool.h> |
30 #include <stringpool.h> |
29 using namespace ContentAccess; |
31 using namespace ContentAccess; |
30 |
32 |
31 _LIT(KDrmContentExtension,".DRM"); |
33 _LIT(KDrmContentExtension,".DRM"); |
32 // Do not change the case of KDrmMimeType as it is needed for case testing. |
34 // Do not change the case of KDrmMimeType as it is needed for case testing. |
402 // |
404 // |
403 // This API is non-leaving and returns void. If we want to |
405 // This API is non-leaving and returns void. If we want to |
404 // make leavescan happy, the options are: 1. TRAP leave calls |
406 // make leavescan happy, the options are: 1. TRAP leave calls |
405 // and ignore the errors. 2. Panic. Both options could potentially |
407 // and ignore the errors. 2. Panic. Both options could potentially |
406 // break RTA clients' testcases. Hence just leave it the way it is. |
408 // break RTA clients' testcases. Hence just leave it the way it is. |
407 #ifndef SYMBIAN_DISABLE_UPWARD_DEPENDENCY |
409 #ifdef INTERNALLY_ENABLE_UPWARD_DEPENDENCY |
408 void CTestAgentManager::PrepareHTTPRequestHeaders(RStringPool& aStringPool, RHTTPHeaders& aRequestHeaders) const |
410 void CTestAgentManager::PrepareHTTPRequestHeaders(RStringPool& aStringPool, RHTTPHeaders& aRequestHeaders) const |
409 { |
411 { |
410 TBuf8 <KMaxDataTypeLength> mimeType; |
412 TBuf8 <KMaxDataTypeLength> mimeType; |
411 mimeType.Copy(KDrmMimeType()); |
413 mimeType.Copy(KDrmMimeType()); |
412 RStringF valStr = aStringPool.OpenFStringL(mimeType); |
414 RStringF valStr = aStringPool.OpenFStringL(mimeType); |