gpu: Add "main" files for Dawn's gtest targets.
Also changes existing test targets to use base::BindOnce instead of the
deprecated base::Bind, and removes some unused includes.
[email protected]
BUG=chromium:870747
Change-Id: Ib94ffd228a6057a7010e8581ccb3392ae700c357
Reviewed-on: https://chromium-review.googlesource.com/c/1307510
Reviewed-by: Kenneth Russell <[email protected]>
Commit-Queue: Corentin Wallez <[email protected]>
Cr-Commit-Position: refs/heads/master@{#603945}
diff --git a/gpu/angle_end2end_tests_main.cc b/gpu/angle_end2end_tests_main.cc
index 272cf29..cb2c65e 100644
--- a/gpu/angle_end2end_tests_main.cc
+++ b/gpu/angle_end2end_tests_main.cc
@@ -2,14 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/at_exit.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/message_loop/message_loop.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
#include "testing/gmock/include/gmock/gmock.h"
-#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/angle/src/tests/test_utils/ANGLETest.h"
namespace {
@@ -27,11 +25,10 @@
testing::AddGlobalTestEnvironment(new ANGLETestEnvironment());
base::TestSuite test_suite(argc, argv);
int rt = base::LaunchUnitTestsWithOptions(
- argc,
- argv,
- 1, // Run tests serially.
- 0, // Disable batching.
+ argc, argv,
+ 1, // Run tests serially.
+ 0, // Disable batching.
true, // Use job objects.
- base::Bind(&RunHelper, base::Unretained(&test_suite)));
+ base::BindOnce(&RunHelper, base::Unretained(&test_suite)));
return rt;
}