1 // Copyright 2022 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/app/chrome_crash_reporter_client_win.h"
9 #include "base/files/file_path.h"
10 #include "testing/gtest/include/gtest/gtest.h"
14 TEST(ChromeCrashReporterClientWin, GetWerModule) {
15 ChromeCrashReporterClient client;
17 std::wstring wer_module = client.GetWerRuntimeExceptionModule();
18 ASSERT_FALSE(wer_module.empty());
19 base::FilePath as_file_path(wer_module);
20 ASSERT_EQ(as_file_path.Extension(), FILE_PATH_LITERAL(".dll"));