Skip to content

Commit

Permalink
Move library include files to the include/upa directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmisev committed Aug 31, 2023
1 parent 1be4642 commit c0eda16
Show file tree
Hide file tree
Showing 41 changed files with 34 additions and 38 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ endif()

include_directories(
deps
src)
include)

if (URL_USE_LIBS)
find_package(ICU REQUIRED COMPONENTS i18n uc)
Expand Down
2 changes: 1 addition & 1 deletion examples/urlparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url.h"
#include "upa/url.h"
#include <fstream>
#include <iostream>
// json
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/url.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url.h"
#include "upa/url.h"

namespace upa {
namespace detail {
Expand Down
4 changes: 2 additions & 2 deletions src/url_idna.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
// Copyright 2013 The Chromium Authors. All rights reserved.
//

#include "url_idna.h"
#include "util.h"
#include "upa/url_idna.h"
#include "upa/util.h"
// ICU
#include "unicode/uidna.h"
#if (U_ICU_VERSION_MAJOR_NUM) >= 59
Expand Down
2 changes: 1 addition & 1 deletion src/url_ip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url_ip.h"
#include "upa/url_ip.h"

namespace upa {

Expand Down
2 changes: 1 addition & 1 deletion src/url_percent_encode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// Copyright 2013 The Chromium Authors. All rights reserved.
//

#include "url_percent_encode.h"
#include "upa/url_percent_encode.h"

namespace upa { // NOLINT(modernize-concat-nested-namespaces)

Expand Down
3 changes: 1 addition & 2 deletions src/url_search_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
// found in the LICENSE file.
//

#include "url.h"
#include "url_search_params.h"
#include "upa/url.h"


namespace upa {
Expand Down
2 changes: 1 addition & 1 deletion src/url_utf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url_utf.h"
#include "upa/url_utf.h"
#include <cassert>

namespace upa {
Expand Down
2 changes: 1 addition & 1 deletion test/fuzz-url.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// Relative URL parsing fuzzer

#include "url.h"
#include "upa/url.h"
#include <cassert>
#include <type_traits>

Expand Down
4 changes: 2 additions & 2 deletions test/test-buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// found in the LICENSE file.
//

#include <string>
#include "doctest-main.h"
#include "buffer.h" // must be included after doctest.h
#include "upa/buffer.h" // must be included after doctest.h
#include <string>

using str = std::char_traits<char>;

Expand Down
2 changes: 1 addition & 1 deletion test/test-ipv4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url.h"
#include "upa/url.h"
#include "doctest-main.h"


Expand Down
2 changes: 1 addition & 1 deletion test/test-ipv6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url.h"
#include "upa/url.h"
#include "doctest-main.h"
#include <algorithm>
#include <cassert>
Expand Down
2 changes: 1 addition & 1 deletion test/test-str_arg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// NOTE: To pass test this file must just compile without errors.
//

#include "str_arg.h"
#include "upa/str_arg.h"
//#include "doctest-main.h"


Expand Down
2 changes: 1 addition & 1 deletion test/test-url-port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url.h"
#include "upa/url.h"
#include "doctest-main.h"


Expand Down
2 changes: 1 addition & 1 deletion test/test-url-setters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url.h"
#include "upa/url.h"
#include "doctest-main.h"


Expand Down
2 changes: 1 addition & 1 deletion test/test-url.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url.h"
#include "upa/url.h"
#include "doctest-main.h"
#include "test-utils.h"

Expand Down
2 changes: 1 addition & 1 deletion test/test-url_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url_host.h"
#include "upa/url_host.h"
#include "doctest-main.h"


Expand Down
2 changes: 1 addition & 1 deletion test/test-url_percent_encode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url_percent_encode.h"
#include "upa/url_percent_encode.h"
#include "doctest-main.h"
#include "test-utils.h"

Expand Down
3 changes: 1 addition & 2 deletions test/test-url_search_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
// found in the LICENSE file.
//

#include "url.h"
#include "url_search_params.h"
#include "upa/url.h"
#include "doctest-main.h"
#include "test-utils.h"
#include <map>
Expand Down
4 changes: 2 additions & 2 deletions test/test-utf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// found in the LICENSE file.
//

#include "url_utf.h"
#include "str_arg.h"
#include "upa/str_arg.h"
#include "upa/url_utf.h"
#include "doctest-main.h"


Expand Down
2 changes: 1 addition & 1 deletion test/test-util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "util.h"
#include "upa/util.h"
#include "doctest-main.h"


Expand Down
6 changes: 3 additions & 3 deletions test/test-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
#ifndef UPA_TEST_UTILS_H
#define UPA_TEST_UTILS_H

#include "config.h"
#include "upa/config.h"
#include <algorithm>
#include <initializer_list>
#include <iomanip>
#include <utility> // std::pair
#include <string>
#include <sstream>
#include <string>
#ifdef __cpp_char8_t
# include <string_view>
#endif
#include <utility> // std::pair


#ifdef __cpp_char8_t
Expand Down
2 changes: 1 addition & 1 deletion test/url_cleanup.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define UPA_URL_CLEANUP_H

// For ICU cleanup
#include "url_idna.h"
#include "upa/url_idna.h"
#include "unicode/uclean.h"

namespace upa {
Expand Down
2 changes: 1 addition & 1 deletion test/wpt-url-setters-stripping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url.h"
#include "upa/url.h"
#include "doctest-main.h"
#include "test-utils.h"
#include <algorithm>
Expand Down
4 changes: 2 additions & 2 deletions test/wpt-url.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
// url library tests
//

#include "url.h"
#include "url_cleanup.h"
#include "upa/url.h"
#include "ddt/DataDrivenTest.hpp"
#include "test-utils.h"
#include "url_cleanup.h"

#include "picojson_fffd.h"

Expand Down
3 changes: 1 addition & 2 deletions test/wpt-url_search_params.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
// found in the LICENSE file.
//

#include "url.h"
#include "url_search_params.h"
#include "upa/url.h"
#include "doctest-main.h"
#include "test-utils.h"
#include <map>
Expand Down
3 changes: 1 addition & 2 deletions test/wpt-urlencoded-parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
// found in the LICENSE file.
//

#include "url.h"
#include "url_search_params.h"
#include "upa/url.h"
#include "url_cleanup.h"

// https://github.com/kazuho/picojson
Expand Down
2 changes: 1 addition & 1 deletion tools/dumpCharBitSets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// found in the LICENSE file.
//

#include "url_percent_encode.h"
#include "upa/url_percent_encode.h"
#include <iomanip>
#include <iostream>

Expand Down

0 comments on commit c0eda16

Please sign in to comment.