Debian Codegraph @

Release/tests/functional/misc/atl_headers/header_test1.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
12 // Include ATL headers before casablanca headers
13 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
14 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
15
16 #ifndef VC_EXTRALEAN
17 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
18 #endif
19
20 // These MFC headers are not code analysis clean.
21 #pragma warning(push)
22 #pragma warning(disable : 6387)
23 #include <afx.h>
24 #include <afxext.h> // MFC extensions
25 #include <afxwin.h> // MFC core and standard components
26 #ifndef _AFX_NO_OLE_SUPPORT
27 #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
28 #endif
29 #ifndef _AFX_NO_AFXCMN_SUPPORT
30 #include <afxcmn.h> // MFC support for Windows Common Controls
31 #endif // _AFX_NO_AFXCMN_SUPPORT
32 #pragma warning(pop)
33
34 #include <iostream>
35 // Windows Header Files:
36 #include <windows.h>
37
38 #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
39
40 #include "cpprest/http_client.h"
41 #include "unittestpp.h"
42 #include <atlbase.h>
43 #include <atlstr.h>
44
45 namespace tests
46 {
47 namespace functional
48 {
49 namespace misc
50 {
51 namespace atl_headers
52 {
53 SUITE(header_test1)
54 {
55 TEST(HeaderTest) { web::http::client::http_client client(U("http://www.cnn.com")); }
56
57 } // SUITE(header_test1)
58
59 } // namespace atl_headers
60 } // namespace misc
61 } // namespace functional
62 } // namespace tests