Skip to content

Commit

Permalink
Remove ifdef of MOZC_USE_MOZC_TESTING.
Browse files Browse the repository at this point in the history
* Fix the build failures caused by 4bc273d

PiperOrigin-RevId: 603552730
  • Loading branch information
hiroyuki-komatsu committed Feb 2, 2024
1 parent 381859f commit 4efc545
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions src/testing/friend_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#ifndef MOZC_TESTING_GUNIT_PROD_H_
#define MOZC_TESTING_GUNIT_PROD_H_

#ifdef MOZC_USE_MOZC_TESTING
// The following macro is originally defined in <gtest/gtest_prod.h>.
// Here we use a private copy instead to avoid dependency on
// <gtest/gtest_prod.h> from production code.
Expand All @@ -39,8 +38,5 @@
friend class test_case_name##_##test_name##_Test
#endif // FRIEND_TEST

#else // MOZC_USE_MOZC_TESTING
#include "testing/production_stub/public/gunit_prod.h" // IWYU pragma: export
#endif // MOZC_USE_MOZC_TESTING

#endif // MOZC_TESTING_GUNIT_PROD_H_
2 changes: 0 additions & 2 deletions src/testing/googletest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef MOZC_USE_MOZC_TESTING

#include "testing/googletest.h"

Expand Down Expand Up @@ -72,4 +71,3 @@ void InitTestFlags() {

} // namespace mozc

#endif // MOZC_USE_MOZC_TESTING
4 changes: 0 additions & 4 deletions src/testing/googletest.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#ifndef MOZC_TESTING_GOOGLETEST_H_
#define MOZC_TESTING_GOOGLETEST_H_

#ifdef MOZC_USE_MOZC_TESTING
#include "absl/flags/declare.h"
#include "absl/flags/flag.h"

Expand All @@ -53,8 +52,5 @@ namespace mozc {
void InitTestFlags();
} // namespace mozc

#else // MOZC_USE_MOZC_TESTING
#include "testing/base/public/googletest.h" // IWYU pragma: export
#endif // MOZC_USE_MOZC_TESTING

#endif // MOZC_TESTING_GOOGLETEST_H_
2 changes: 0 additions & 2 deletions src/testing/googletest_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

// This test is only relevant when mozc is using its own test main.
#ifdef MOZC_USE_MOZC_TESTING

#include "testing/googletest.h"

Expand Down Expand Up @@ -61,4 +60,3 @@ TEST(GoogleTest, TestFlags) {
} // namespace
} // namespace mozc

#endif // MOZC_USE_MOZC_TESTING
2 changes: 0 additions & 2 deletions src/testing/gtest_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#ifdef MOZC_USE_MOZC_TESTING

#ifdef _WIN32
#include <crtdbg.h>
Expand Down Expand Up @@ -64,4 +63,3 @@ int main(int argc, char **argv) {
return RUN_ALL_TESTS();
}

#endif // MOZC_USE_MOZC_TESTING

0 comments on commit 4efc545

Please sign in to comment.