Update googletest github links
Replace instances of "master" in github links Change-Id: Iee373a91056d72803cfdd1684a362d9434a71ff7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3353108 Reviewed-by: Erik Staab <estaab@chromium.org> Reviewed-by: Eric Willigers <ericwilligers@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org> Owners-Override: Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/main@{#959901}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
c9b9dc06c0
commit
c2e3d88149
base/test
build
chrome/test
components/metrics
content/browser/indexed_db
docs
media
testing
third_party/blink/renderer/core/exported
@ -44,7 +44,7 @@ TYPED_TEST_P(FakeIAsyncOperationTest, MultipleCompletions) {
|
||||
ASSERT_NO_FATAL_FAILURE(
|
||||
operation->CompleteWithResults(test_values.GetTestValue_T()));
|
||||
// EXPECT_FATAL_FAILURE() can only reference globals and statics.
|
||||
// https://github.com/google/googletest/blob/master/docs/advanced.md#catching-failures
|
||||
// https://github.com/google/googletest/blob/main/docs/advanced.md#catching-failures
|
||||
static auto test_value_t = test_values.GetTestValue_T();
|
||||
static auto& static_operation = operation;
|
||||
EXPECT_FATAL_FAILURE(static_operation->CompleteWithResults(test_value_t),
|
||||
|
@ -2,7 +2,7 @@ $$ This is a pump file for generating file templates. Pump is a python
|
||||
$$ script that is part of the Google Test suite of utilities. Description
|
||||
$$ can be found here:
|
||||
$$
|
||||
$$ https://github.com/google/googletest/blob/master/googletest/docs/PumpManual.md
|
||||
$$ https://github.com/google/googletest/blob/main/googletest/docs/PumpManual.md
|
||||
$$
|
||||
$$ MAX_ARITY controls the number of arguments that MockCallback supports.
|
||||
$$ It is choosen to match the number GMock supports.
|
||||
|
@ -20,7 +20,7 @@ def ParseFilterFile(input_lines):
|
||||
syntax that |input_lines| are expected to follow.
|
||||
|
||||
See
|
||||
https://github.com/google/googletest/blob/master/docs/advanced.md#running-a-subset-of-the-tests
|
||||
https://github.com/google/googletest/blob/main/docs/advanced.md#running-a-subset-of-the-tests
|
||||
for description of the syntax that --gtest_filter argument should follow.
|
||||
|
||||
Args:
|
||||
|
@ -95,7 +95,7 @@ def GetTestName(test):
|
||||
def FilterTestSuite(suite, gtest_filter):
|
||||
"""Returns a new filtered tests suite based on the given gtest filter.
|
||||
|
||||
See https://github.com/google/googletest/blob/master/docs/advanced.md
|
||||
See https://github.com/google/googletest/blob/main/docs/advanced.md
|
||||
for gtest_filter specification.
|
||||
"""
|
||||
return unittest.TestSuite(FilterTests(GetTestsFromSuite(suite), gtest_filter))
|
||||
@ -119,7 +119,7 @@ def FilterTests(all_tests, gtest_filter):
|
||||
def FilterTestNames(all_tests, gtest_filter):
|
||||
"""Filter a list of test names based on the given gtest filter.
|
||||
|
||||
See https://github.com/google/googletest/blob/master/docs/advanced.md
|
||||
See https://github.com/google/googletest/blob/main/docs/advanced.md
|
||||
for gtest_filter specification.
|
||||
|
||||
Args:
|
||||
|
@ -31,7 +31,7 @@ const GURL& DummyUrl() {
|
||||
} // namespace
|
||||
|
||||
// According to the interface for EXPECT_FATAL_FAILURE
|
||||
// (https://github.com/google/googletest/blob/master/docs/advanced.md#catching-failures)
|
||||
// (https://github.com/google/googletest/blob/main/docs/advanced.md#catching-failures)
|
||||
// the statement must be statically available. Therefore, we make a static
|
||||
// global s_test_ which should point to |this| for the duration of the test run
|
||||
// and be cleared afterward.
|
||||
|
@ -95,7 +95,7 @@ def GetTestName(test):
|
||||
def FilterTestSuite(suite, gtest_filter):
|
||||
"""Returns a new filtered tests suite based on the given gtest filter.
|
||||
|
||||
See https://github.com/google/googletest/blob/master/docs/advanced.md
|
||||
See https://github.com/google/googletest/blob/main/docs/advanced.md
|
||||
for gtest_filter specification.
|
||||
"""
|
||||
return unittest.TestSuite(FilterTests(GetTestsFromSuite(suite), gtest_filter))
|
||||
@ -104,7 +104,7 @@ def FilterTestSuite(suite, gtest_filter):
|
||||
def FilterTests(all_tests, gtest_filter):
|
||||
"""Returns a filtered list of tests based on the given gtest filter.
|
||||
|
||||
See https://github.com/google/googletest/blob/master/docs/advanced.md
|
||||
See https://github.com/google/googletest/blob/main/docs/advanced.md
|
||||
for gtest_filter specification.
|
||||
"""
|
||||
pattern_groups = gtest_filter.split('-')
|
||||
|
@ -145,7 +145,7 @@ TEST_F(SingleSampleMetricsFactoryImplTest, DefaultSingleSampleMetricWithValue) {
|
||||
|
||||
TEST_F(SingleSampleMetricsFactoryImplTest, MultithreadedMetrics) {
|
||||
// Allow EXPECT_DCHECK_DEATH for multiple threads.
|
||||
// https://github.com/google/googletest/blob/master/docs/advanced.md#death-tests-and-threads
|
||||
// https://github.com/google/googletest/blob/main/docs/advanced.md#death-tests-and-threads
|
||||
testing::FLAGS_gtest_death_test_style = "threadsafe";
|
||||
|
||||
base::HistogramTester tester;
|
||||
|
@ -68,7 +68,7 @@ class IndexedDBTransactionTest : public testing::Test {
|
||||
void SetUp() override {
|
||||
// DB is created here instead of the constructor to workaround a
|
||||
// "peculiarity of C++". More info at
|
||||
// https://github.com/google/googletest/blob/master/docs/faq.md#my-compiler-complains-that-a-constructor-or-destructor-cannot-return-a-value-whats-going-on
|
||||
// https://github.com/google/googletest/blob/main/docs/faq.md#my-compiler-complains-that-a-constructor-or-destructor-cannot-return-a-value-whats-going-on
|
||||
leveldb::Status s;
|
||||
std::tie(db_, s) = IndexedDBClassFactory::Get()->CreateIndexedDBDatabase(
|
||||
u"db", backing_store_.get(), factory_.get(), CreateRunTasksCallback(),
|
||||
|
@ -3,7 +3,7 @@ The video decoder performance tests are a set of tests used to measure the
|
||||
performance of various video decoder implementations. These tests run directly
|
||||
on top of the video decoder implementation, and don't require the full Chrome
|
||||
browser stack. They are build on top of the
|
||||
[GoogleTest](https://github.com/google/googletest/blob/master/README.md)
|
||||
[GoogleTest](https://github.com/google/googletest/blob/main/README.md)
|
||||
framework.
|
||||
|
||||
[TOC]
|
||||
|
@ -7,7 +7,7 @@ on top of the video decoder implementation, and don't require the full Chrome
|
||||
browser stack. They can be very useful when adding support for a new codec or
|
||||
platform, or to make sure code changes don't break existing functionality. They
|
||||
are build on top of the
|
||||
[GoogleTest](https://github.com/google/googletest/blob/master/README.md)
|
||||
[GoogleTest](https://github.com/google/googletest/blob/main/README.md)
|
||||
framework.
|
||||
|
||||
[TOC]
|
||||
|
@ -5,7 +5,7 @@ be used to measure a video encoder's performance.
|
||||
|
||||
These tests run directly on top of the video encoder implementation, and
|
||||
don't require the full Chrome browser stack. They are built on top of the
|
||||
[GoogleTest](https://github.com/google/googletest/blob/master/README.md)
|
||||
[GoogleTest](https://github.com/google/googletest/blob/main/README.md)
|
||||
framework.
|
||||
|
||||
[TOC]
|
||||
|
@ -179,7 +179,7 @@ development pain for other and then fix it later. "[How do I disable a flaky
|
||||
test]" has instructions on how to disable a flaky test.
|
||||
|
||||
[gtest]: https://github.com/google/googletest
|
||||
[Simple gtests]: https://github.com/google/googletest/blob/master/docs/primer.md#simple-tests
|
||||
[Simple gtests]: https://github.com/google/googletest/blob/main/docs/primer.md#simple-tests
|
||||
[Junit]: https://developer.android.com/training/testing/junit-rules
|
||||
[Instrumentation Tests]: https://chromium.googlesource.com/chromium/src/+/main/testing/android/docs/instrumentation.md
|
||||
[EarlGrey]: https://github.com/google/EarlGrey
|
||||
|
@ -34,7 +34,7 @@ WebDocument WebDisallowTransitionScopeTest::TopWebDocument() const {
|
||||
// TODO(crbug.com/1067036): the death test fails on Android.
|
||||
TEST_F(WebDisallowTransitionScopeTest, TestDisallowTransition) {
|
||||
// Make the death test thread-safe. For more info, see:
|
||||
// https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads
|
||||
// https://github.com/google/googletest/blob/main/googletest/docs/advanced.md#death-tests-and-threads
|
||||
::testing::FLAGS_gtest_death_test_style = "threadsafe";
|
||||
|
||||
web_view_helper_.InitializeAndLoad("about:blank");
|
||||
|
Reference in New Issue
Block a user