Debian Codegraph @

Release/tests/functional/misc/atl_headers/header_test2.cpp

raw
1 /***
2 * Copyright (C) Microsoft. All rights reserved.
3 * Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
4 *
5 * =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
6 *
7 * Basic tests to include headers
8 *
9 * =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
10 ****/
11 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
12 #include "cpprest/http_client.h"
13
14 // Include ATL headers after casablanca headers
15 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
16 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
17
18 #ifndef VC_EXTRALEAN
19 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
20 #endif
21
22 // These MFC headers are not code analysis clean.
23 #pragma warning(push)
24 #pragma warning(disable : 6387)
25 #include <afx.h>
26 #include <afxext.h> // MFC extensions
27 #include <afxwin.h> // MFC core and standard components
28 #ifndef _AFX_NO_OLE_SUPPORT
29 #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
30 #endif
31 #ifndef _AFX_NO_AFXCMN_SUPPORT
32 #include <afxcmn.h> // MFC support for Windows Common Controls
33 #endif // _AFX_NO_AFXCMN_SUPPORT
34 #pragma warning(pop)
35
36 #include <iostream>
37 // Windows Header Files:
38 #include <windows.h>
39
40 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
41
42 #include "unittestpp.h"
43 #include <atlbase.h>
44 #include <atlstr.h>
45
46 namespace tests
47 {
48 namespace functional
49 {
50 namespace misc
51 {
52 namespace atl_headers
53 {
54 SUITE(header_test2)
55 {
56 TEST(HeaderTest) { web::http::client::http_client client(U("http://www.cnn.com")); }
57
58 } // SUITE(header_test2)
59
60 } // namespace atl_headers
61 } // namespace misc
62 } // namespace functional
63 } // namespace tests