
Specifically, NotificationsApiTestWithServiceWorker.TestPartialUpdate. This required extracting a utility function GetSingleLoadedExtension() so it can be used in android version of the test. Bug: 371431032 Test: android_browsertests Change-Id: I0531efb0f956a019699420e4a18e6bac378a4f4e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6020899 Reviewed-by: Emilia Paz <emiliapaz@chromium.org> Commit-Queue: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/main@{#1383377}
26 lines
722 B
C++
26 lines
722 B
C++
// Copyright 2024 The Chromium Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef CHROME_BROWSER_EXTENSIONS_API_TEST_UTIL_H_
|
|
#define CHROME_BROWSER_EXTENSIONS_API_TEST_UTIL_H_
|
|
|
|
#include <string>
|
|
|
|
class Profile;
|
|
|
|
namespace extensions {
|
|
class Extension;
|
|
|
|
namespace api_test_util {
|
|
|
|
// Tests that exactly one extension loaded. If so, returns a pointer to the
|
|
// extension. If not, returns nullptr and sets `message`.
|
|
const Extension* GetSingleLoadedExtension(Profile* profile,
|
|
std::string& message);
|
|
|
|
} // namespace api_test_util
|
|
} // namespace extensions
|
|
|
|
#endif // CHROME_BROWSER_EXTENSIONS_API_TEST_UTIL_H_
|