Skip to content

Commit 703a135

Browse files
authored
Merge 44c5884 into 6abc134
2 parents 6abc134 + 44c5884 commit 703a135

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+124
-59
lines changed

Diff for: tests/unittests/code-main.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
26-
#include <gmock/gmock.h>
25+
#include "pch.h"
2726

2827
#ifndef NOMINMAX
2928
#define NOMINMAX

Diff for: tests/unittests/eval_outputs.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#include "util/string_ex.h"
2828

Diff for: tests/unittests/pch.cpp

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*! @file */
2+
/*
3+
Copyright (C) 2025, Sakura Editor Organization
4+
5+
This software is provided 'as-is', without any express or implied
6+
warranty. In no event will the authors be held liable for any damages
7+
arising from the use of this software.
8+
9+
Permission is granted to anyone to use this software for any purpose,
10+
including commercial applications, and to alter it and redistribute it
11+
freely, subject to the following restrictions:
12+
13+
1. The origin of this software must not be misrepresented;
14+
you must not claim that you wrote the original software.
15+
If you use this software in a product, an acknowledgment
16+
in the product documentation would be appreciated but is
17+
not required.
18+
19+
2. Altered source versions must be plainly marked as such,
20+
and must not be misrepresented as being the original software.
21+
22+
3. This notice may not be removed or altered from any source
23+
distribution.
24+
*/
25+
#include "pch.h"

Diff for: tests/unittests/pch.h

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*! @file */
2+
/*
3+
Copyright (C) 2025, Sakura Editor Organization
4+
5+
This software is provided 'as-is', without any express or implied
6+
warranty. In no event will the authors be held liable for any damages
7+
arising from the use of this software.
8+
9+
Permission is granted to anyone to use this software for any purpose,
10+
including commercial applications, and to alter it and redistribute it
11+
freely, subject to the following restrictions:
12+
13+
1. The origin of this software must not be misrepresented;
14+
you must not claim that you wrote the original software.
15+
If you use this software in a product, an acknowledgment
16+
in the product documentation would be appreciated but is
17+
not required.
18+
19+
2. Altered source versions must be plainly marked as such,
20+
and must not be misrepresented as being the original software.
21+
22+
3. This notice may not be removed or altered from any source
23+
distribution.
24+
*/
25+
#include "StdAfx.h"
26+
27+
#include <gmock/gmock.h>

Diff for: tests/unittests/test-StdControl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include "apiwrap/StdControl.h"
2727

2828
/*!

Diff for: tests/unittests/test-cclipboard.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
26-
#include <gmock/gmock.h>
25+
#include "pch.h"
2726

2827
#ifndef NOMINMAX
2928
#define NOMINMAX

Diff for: tests/unittests/test-ccodebase.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
distribution.
2323
*/
2424

25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include "charset/CCodeFactory.h"
2727

2828
#include <cstdlib>

Diff for: tests/unittests/test-ccommandline.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-cconvert.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
distribution.
2323
*/
2424

25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include "convert/CConvert.h"
2727

2828
#include <ostream>

Diff for: tests/unittests/test-cdecode.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
distribution.
2323
*/
2424

25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include <cstdlib>
2727
#include <string>
2828
#include "convert/CDecode.h"

Diff for: tests/unittests/test-cdlgopenfile.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#ifndef STRICT
2727
#define STRICT 1
2828
#endif

Diff for: tests/unittests/test-cdlgprofilemgr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-cdocline.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
distribution.
2323
*/
2424

25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include "doc/logic/CDocLine.h"
2727

2828
#include <string_view>

Diff for: tests/unittests/test-cdoclinemgr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
distribution.
2323
*/
2424

25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include "doc/logic/CDocLineMgr.h"
2727

2828
#include <array>

Diff for: tests/unittests/test-cdoctypemanager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
distribution.
2323
*/
2424

25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include <windows.h>
2727
#include <string>
2828
#include "mem/CNativeW.h"

Diff for: tests/unittests/test-ceol.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
distribution.
2323
*/
2424

25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include "CEol.h"
2727

2828
/*!

Diff for: tests/unittests/test-cerrorinfo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-cfileext.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-charcode.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
#define NOMINMAX
2626
#include "charset/charcode.h"
27-
#include <gtest/gtest.h>
27+
#include "pch.h"
2828
#include <algorithm>
2929
#include <cstring>
3030
#include <string>

Diff for: tests/unittests/test-clayoutint.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-cmemory.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include "mem/CMemory.h"
2727

2828
#include "_main/CNormalProcess.h"

Diff for: tests/unittests/test-cnative.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
distribution.
2424
*/
2525
#include <stdexcept>
26-
#include <gtest/gtest.h>
26+
#include "pch.h"
2727
#include "charset/charcode.h"
2828
#include "mem/CNativeW.h"
2929
#include "mem/CNativeA.h"

Diff for: tests/unittests/test-codechecker.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
distribution.
2323
*/
2424

25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include "charset/codechecker.h"
2727

2828
TEST(ConvertToUtf32, SurrogatePair)

Diff for: tests/unittests/test-cppa.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#include "macro/CPPA.h"
2828

Diff for: tests/unittests/test-cprofile.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-crunningtimer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include "debug/CRunningTimer.h"
2727

2828
/*!

Diff for: tests/unittests/test-csakuraenvironment.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-csearchagent.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
distribution.
2323
*/
2424

25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include "CSaveAgent.h"
2727

2828
#include <array>

Diff for: tests/unittests/test-csharedata.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-ctextmetrics.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include "view/CTextMetrics.h"
2727
#include <vector>
2828
#include <Windows.h>

Diff for: tests/unittests/test-cwordparse.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include "parse/CWordParse.h"
2727

2828
#include <cstring>

Diff for: tests/unittests/test-czipfile.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-design_template.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-editinfo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-extmodules.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#include "TExtModule.hpp"
2828

Diff for: tests/unittests/test-file.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-format.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626
#include <Windows.h>
2727
#include "util/format.h"
2828

Diff for: tests/unittests/test-grepinfo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

Diff for: tests/unittests/test-int2dec.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#include <limits>
2828

Diff for: tests/unittests/test-is_mailaddress.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
3. This notice may not be removed or altered from any source
2323
distribution.
2424
*/
25-
#include <gtest/gtest.h>
25+
#include "pch.h"
2626

2727
#ifndef NOMINMAX
2828
#define NOMINMAX

0 commit comments

Comments
 (0)