tests: Format with clang-tidy (see #3632)

This commit is contained in:
Marshall Greenblatt
2024-01-19 21:22:56 -05:00
parent 9fd312ce04
commit 0a64bb6f9b
108 changed files with 505 additions and 647 deletions

View File

@@ -15,8 +15,7 @@
#include "tests/shared/browser/resource_util.h"
#include "tests/shared/common/string_util.h"
namespace client {
namespace extension_util {
namespace client::extension_util {
namespace {
@@ -124,9 +123,9 @@ bool IsInternalExtension(const std::string& extension_path) {
static const char* extensions[] = {"set_page_color"};
const std::string& internal_path = GetInternalPath(extension_path);
for (size_t i = 0; i < std::size(extensions); ++i) {
for (auto& i : extensions) {
// Exact match or first directory component.
const std::string& extension = extensions[i];
const std::string& extension = i;
if (internal_path == extension ||
internal_path.find(extension + '/') == 0) {
return true;
@@ -253,5 +252,4 @@ std::string GetExtensionIconPath(CefRefPtr<CefExtension> extension,
return std::string();
}
} // namespace extension_util
} // namespace client
} // namespace client::extension_util