| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
optimization_guide::ModelInfo{iwyu: `components/optimization_guide/core/delivery/model_info.h`. also applies to `ai_semantic_embedder_service_launcher_unittest.cc`
.model_file_path = base::FilePath(FILE_PATH_LITERAL("embeddings")),iwyu: `base/files/file_path.h`. also applies to `ai_semantic_embedder_service_launcher_unittest.cc`
#include "components/passage_embeddings/core/passage_embeddings_test_util.h"iwyu: no longer used
model_provider->SetModelInfo(optimization_guide::ModelInfo{});iwyu: `components/optimization_guide/core/delivery/model_info.h`
base::PathService::CheckedGet(base::DIR_SRC_TEST_DATA_ROOT)iwyu: `base/base_paths.h` and `base/files/file_path.h`
////////////////////////////////////////////////////////////////////////////////nit: not sure what this was separating in the first place but maybe remove it since it's removed in the .cc file. also clean up the extra empty lines around here.
#include "components/optimization_guide/core/delivery/model_info.h"iwyu: no longer used
#include "base/path_service.h"iwyu: no longer used
#include "components/optimization_guide/core/optimization_guide_proto_util.h"
#include "components/optimization_guide/proto/passage_embeddings_model_metadata.pb.h"iwyu: no longer used
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
iwyu: `components/optimization_guide/core/delivery/model_info.h`. also applies to `ai_semantic_embedder_service_launcher_unittest.cc`
Done
.model_file_path = base::FilePath(FILE_PATH_LITERAL("embeddings")),iwyu: `base/files/file_path.h`. also applies to `ai_semantic_embedder_service_launcher_unittest.cc`
Done
#include "components/passage_embeddings/core/passage_embeddings_test_util.h"Mike Wittmaniwyu: no longer used
Done
model_provider->SetModelInfo(optimization_guide::ModelInfo{});Mike Wittmaniwyu: `components/optimization_guide/core/delivery/model_info.h`
Done
base::PathService::CheckedGet(base::DIR_SRC_TEST_DATA_ROOT)Mike Wittmaniwyu: `base/base_paths.h` and `base/files/file_path.h`
Done
////////////////////////////////////////////////////////////////////////////////nit: not sure what this was separating in the first place but maybe remove it since it's removed in the .cc file. also clean up the extra empty lines around here.
Done
#include "components/optimization_guide/core/delivery/model_info.h"Mike Wittmaniwyu: no longer used
Done
#include "base/path_service.h"Mike Wittmaniwyu: no longer used
Done
#include "components/optimization_guide/core/optimization_guide_proto_util.h"
#include "components/optimization_guide/proto/passage_embeddings_model_metadata.pb.h"Mike Wittmaniwyu: no longer used
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[PassageEmbeddings] Simplify test ModelInfo setup
Replace passage_embeddings::GetValidModelInfo() with direct
construction of optimization_guide::ModelInfo across tests.
Previously, tests used GetValidModelInfo(), which resolved fake model
files on disk via base::PathService and constructed full metadata protos
even for tests that only checked model availability or null checks.
This change replaces GetValidModelInfo() with direct ModelInfo struct
initialization tailored to each test's requirements, and moves this
setup close to the tests for improved readability:
- Observer tests pass an empty ModelInfo{}.
- Availability tests construct lightweight ModelInfo structs with
inline PassageEmbeddingsModelMetadata proto parameters and dummy
file paths.
- Service controller tests use a single local GetTestModelInfo()
helper returning real test data file paths for Mojo IPC validation.
GetValidModelInfo() is removed from passage_embeddings_test_util as
it has no remaining usages.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |