Skip to content

Commit

Permalink
Deshim test_util in fbcode/wangle
Browse files Browse the repository at this point in the history
Summary:
The following rules were deshimmed:
```
//folly/experimental:test_util -> //folly/testing:test_util
```

The following headers were deshimmed:
```
folly/experimental/TestUtil.h -> folly/testing/TestUtil.h
```

This is a codemod. It was automatically generated and will be landed once it is approved and tests are passing in sandcastle.
You have been added as a reviewer by Sentinel or Butterfly.

Autodiff project: detu
Autodiff partition: fbcode.wangle
Autodiff bookmark: ad.detu.fbcode.wangle

Reviewed By: Orvid

Differential Revision: D60409950

fbshipit-source-id: acded7d55843033b07a385220886d52e7d5a1583
  • Loading branch information
Gownta authored and facebook-github-bot committed Jul 30, 2024
1 parent cfc2ef9 commit 303cbe9
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion wangle/acceptor/test/AcceptorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* limitations under the License.
*/

#include <folly/experimental/TestUtil.h>
#include <folly/io/async/EventBase.h>
#include <folly/io/async/test/AsyncSSLSocketTest.h>
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>
#include <folly/testing/TestUtil.h>
#include <glog/logging.h>
#include <wangle/acceptor/AcceptObserver.h>
#include <wangle/acceptor/Acceptor.h>
Expand Down
4 changes: 2 additions & 2 deletions wangle/acceptor/test/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ cpp_unittest(
remote_execution = re_test_utils.remote_execution_linux_default(),
supports_static_listing = False,
deps = [
"//folly/experimental:test_util",
"//folly/io/async:async_base",
"//folly/io/async/test:async_ssl_socket_test_lib",
"//folly/portability:gmock",
"//folly/portability:gtest",
"//folly/testing:test_util",
"//wangle/acceptor:accept_observer",
"//wangle/acceptor:acceptor",
],
Expand Down Expand Up @@ -104,10 +104,10 @@ cpp_unittest(
remote_execution = re_test_utils.remote_execution_linux_default(),
deps = [
"//folly:file_util",
"//folly/experimental:test_util",
"//folly/io/async:async_base",
"//folly/portability:gmock",
"//folly/portability:gtest",
"//folly/testing:test_util",
"//wangle/acceptor:fizz_config_util",
"//wangle/acceptor:shared_ssl_context_manager",
],
Expand Down
2 changes: 1 addition & 1 deletion wangle/acceptor/test/SharedSSLContextManagerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
#include <functional>

#include <folly/FileUtil.h>
#include <folly/experimental/TestUtil.h>
#include <folly/io/async/EventBase.h>
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>
#include <folly/testing/TestUtil.h>
#include <wangle/acceptor/FizzConfigUtil.h>
#include <wangle/acceptor/SharedSSLContextManager.h>

Expand Down
2 changes: 1 addition & 1 deletion wangle/bootstrap/test/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ cpp_unittest(
srcs = ["BootstrapTest.cpp"],
remote_execution = re_test_utils.remote_execution_linux_default(),
deps = [
"//folly/experimental:test_util",
"//folly/portability:gtest",
"//folly/synchronization:latch",
"//folly/testing:test_util",
"//wangle/bootstrap:client_bootstrap",
"//wangle/bootstrap:server_bootstrap",
"//wangle/channel:handler",
Expand Down
2 changes: 1 addition & 1 deletion wangle/bootstrap/test/BootstrapTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
#include "wangle/bootstrap/ServerBootstrap.h"
#include "wangle/channel/Handler.h"

#include <folly/experimental/TestUtil.h>
#include <folly/portability/GTest.h>
#include <folly/synchronization/Latch.h>
#include <folly/testing/TestUtil.h>
#include <glog/logging.h>

using namespace wangle;
Expand Down
2 changes: 1 addition & 1 deletion wangle/client/persistence/test/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cpp_library(
"TestUtil.h",
],
deps = [
"//folly/experimental:test_util",
"//folly/testing:test_util",
],
exported_deps = [
"//folly:memory",
Expand Down
2 changes: 1 addition & 1 deletion wangle/client/persistence/test/TestUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <wangle/client/persistence/test/TestUtil.h>

#include <folly/experimental/TestUtil.h>
#include <folly/testing/TestUtil.h>

namespace wangle {

Expand Down
4 changes: 2 additions & 2 deletions wangle/ssl/test/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ cpp_unittest(
],
remote_execution = re_test_utils.remote_execution_linux_default(),
deps = [
"//folly/experimental:test_util",
"//folly/io/async:async_base",
"//folly/io/async:ssl_context",
"//folly/io/async/test:test_ssl_server",
"//folly/portability:gtest",
"//folly/testing:test_util",
"//wangle/acceptor:util",
"//wangle/ssl:server_ssl_context",
"//wangle/ssl:ssl_cache_options",
Expand All @@ -38,14 +38,14 @@ cpp_unittest(
remote_execution = re_test_utils.remote_execution_linux_default(),
deps = [
":mock_ssl_stats",
"//folly/experimental:test_util",
"//folly/io/async:async_base",
"//folly/io/async:async_ssl_socket",
"//folly/io/async:ssl_context",
"//folly/io/async/test:async_ssl_socket_test_lib",
"//folly/io/async/test:test_ssl_server",
"//folly/portability:gmock",
"//folly/portability:gtest",
"//folly/testing:test_util",
"//wangle/ssl:ssl_stats",
"//wangle/ssl:tls_ticket_key_manager",
],
Expand Down
2 changes: 1 addition & 1 deletion wangle/ssl/test/SSLContextManagerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#include <wangle/ssl/TLSTicketKeyManager.h>

#if defined(WANGLE_USE_FOLLY_TESTUTIL)
#include <folly/experimental/TestUtil.h>
#include <folly/io/async/test/TestSSLServer.h>
#include <folly/testing/TestUtil.h>

namespace {
std::string get_resource(const char* res) {
Expand Down
2 changes: 1 addition & 1 deletion wangle/ssl/test/TLSTicketKeyManagerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#include <wangle/ssl/test/MockSSLStats.h>

#if defined(WANGLE_USE_FOLLY_TESTUTIL)
#include <folly/experimental/TestUtil.h>
#include <folly/io/async/test/TestSSLServer.h>
#include <folly/testing/TestUtil.h>

namespace {
std::string get_resource(const char* res) {
Expand Down
4 changes: 2 additions & 2 deletions wangle/util/test/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ cpp_unittest(
"//folly:file",
"//folly:file_util",
"//folly:singleton",
"//folly/experimental:test_util",
"//folly/portability:gtest",
"//folly/portability:sys_stat",
"//folly/synchronization:baton",
"//folly/testing:test_util",
"//wangle/util:file_poller",
],
external_deps = [
Expand All @@ -29,10 +29,10 @@ cpp_unittest(
"//folly:file_util",
"//folly:map_util",
"//folly:string",
"//folly/experimental:test_util",
"//folly/futures:core",
"//folly/portability:gtest",
"//folly/synchronization:saturating_semaphore",
"//folly/testing:test_util",
"//wangle/util:multi_file_poller",
],
)
2 changes: 1 addition & 1 deletion wangle/util/test/FilePollerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
#include <folly/File.h>
#include <folly/FileUtil.h>
#include <folly/Singleton.h>
#include <folly/experimental/TestUtil.h>
#include <folly/portability/GTest.h>
#include <folly/portability/SysStat.h>
#include <folly/synchronization/Baton.h>
#include <folly/testing/TestUtil.h>
#include <glog/logging.h>
#include <wangle/util/FilePoller.h>

Expand Down
2 changes: 1 addition & 1 deletion wangle/util/test/MultiFilePollerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
#include <folly/FileUtil.h>
#include <folly/MapUtil.h>
#include <folly/String.h>
#include <folly/experimental/TestUtil.h>
#include <folly/futures/Future.h>
#include <folly/portability/GTest.h>
#include <folly/synchronization/SaturatingSemaphore.h>
#include <folly/testing/TestUtil.h>

using namespace wangle;
using namespace folly::test;
Expand Down

0 comments on commit 303cbe9

Please sign in to comment.