-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ambient: Moved mock ambient backend model to a separate class
Now the MockAmbientBackendModel has been de-duplicated and has now been moved to a separate class. Bug: b/271098375 Test: ./ash_unittests --gtest_filter=*Ambient*PhotoControllerTest* Change-Id: Ied8d2e40eb5bcbef803a0c847a429174f9c599be Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4300549 Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> Commit-Queue: Fahad Mansoor <fahadmansoor@google.com> Reviewed-by: Eric Sum <esum@google.com> Cr-Commit-Position: refs/heads/main@{#1115623}
- Loading branch information
Fahad Mansoor
authored and
Chromium LUCI CQ
committed
Mar 10, 2023
1 parent
201d425
commit 35f8dcf
Showing
5 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "ash/ambient/test/mock_ambient_backend_model_observer.h" | ||
|
||
namespace ash { | ||
|
||
MockAmbientBackendModelObserver::MockAmbientBackendModelObserver() = default; | ||
|
||
MockAmbientBackendModelObserver::~MockAmbientBackendModelObserver() = default; | ||
|
||
} // namespace ash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef ASH_AMBIENT_TEST_MOCK_AMBIENT_BACKEND_MODEL_OBSERVER_H_ | ||
#define ASH_AMBIENT_TEST_MOCK_AMBIENT_BACKEND_MODEL_OBSERVER_H_ | ||
|
||
#include "ash/ambient/model/ambient_backend_model_observer.h" | ||
#include "testing/gmock/include/gmock/gmock.h" | ||
|
||
namespace ash { | ||
|
||
class MockAmbientBackendModelObserver : public AmbientBackendModelObserver { | ||
public: | ||
MockAmbientBackendModelObserver(); | ||
~MockAmbientBackendModelObserver() override; | ||
|
||
// AmbientBackendModelObserver: | ||
MOCK_METHOD(void, OnImageAdded, (), (override)); | ||
MOCK_METHOD(void, OnImagesReady, (), (override)); | ||
}; | ||
|
||
} // namespace ash | ||
|
||
#endif // ASH_AMBIENT_TEST_MOCK_AMBIENT_BACKEND_MODEL_OBSERVER_H_ |