diff options
author | Sam Hurst <shurst@google.com> | 2020-08-03 13:06:42 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-05 18:41:25 +0000 |
commit | dede4e01ae4c877bb05d671087a6e85a29a0f902 (patch) | |
tree | 8aaaba7b7ce04c059ecd4df4de8a5609492065db /util/ec3po | |
parent | e891cd5ebbb08c9101f1802c2dfcec755718d23f (diff) | |
download | chrome-ec-dede4e01ae4c877bb05d671087a6e85a29a0f902.tar.gz |
ec: change usage of dummy
Google is working to change its source code to use more inclusive
language. To that end, replace the term "dummy" with inclusive
alternatives.
BUG=b:162781382
BRANCH=None
TEST=make -j buildall
`grep -ir dummy *`
The only results are in "private/nordic_keyboard/sdk8.0.0"
which is not our code.
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: I6a42183d998e4db4bb61625f962867fda10722e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2335737
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'util/ec3po')
-rwxr-xr-x | util/ec3po/console_unittest.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/ec3po/console_unittest.py b/util/ec3po/console_unittest.py index 3c194d8419..b648f6d0c8 100755 --- a/util/ec3po/console_unittest.py +++ b/util/ec3po/console_unittest.py @@ -236,12 +236,12 @@ class TestConsoleEditingMethods(unittest.TestCase): # create a loopback. self.tempfile = tempfile.TemporaryFile() - # Create some dummy pipes. These won't be used since we'll mock out sends + # Create some mock pipes. These won't be used since we'll mock out sends # to the interpreter. - dummy_pipe_end_0, dummy_pipe_end_1 = threadproc_shim.Pipe() + mock_pipe_end_0, mock_pipe_end_1 = threadproc_shim.Pipe() self.console = console.Console(self.tempfile.fileno(), self.tempfile, tempfile.TemporaryFile(), - dummy_pipe_end_0, dummy_pipe_end_1, "EC") + mock_pipe_end_0, mock_pipe_end_1, "EC") # Console editing methods are only valid for enhanced EC images, therefore # we have to assume that the "EC" we're talking to is enhanced. By default, @@ -1142,10 +1142,10 @@ class TestConsoleCompatibility(unittest.TestCase): self.tempfile = tempfile.TemporaryFile() # Mock out the pipes. - dummy_pipe_end_0, dummy_pipe_end_1 = mock.MagicMock(), mock.MagicMock() + mock_pipe_end_0, mock_pipe_end_1 = mock.MagicMock(), mock.MagicMock() self.console = console.Console(self.tempfile.fileno(), self.tempfile, tempfile.TemporaryFile(), - dummy_pipe_end_0, dummy_pipe_end_1, "EC") + mock_pipe_end_0, mock_pipe_end_1, "EC") @mock.patch('console.Console.CheckForEnhancedECImage') def test_ActAsPassThruInNonEnhancedMode(self, mock_check): @@ -1412,10 +1412,10 @@ class TestOOBMConsoleCommands(unittest.TestCase): self.tempfile = tempfile.TemporaryFile() # Mock out the pipes. - dummy_pipe_end_0, dummy_pipe_end_1 = mock.MagicMock(), mock.MagicMock() + mock_pipe_end_0, mock_pipe_end_1 = mock.MagicMock(), mock.MagicMock() self.console = console.Console(self.tempfile.fileno(), self.tempfile, tempfile.TemporaryFile(), - dummy_pipe_end_0, dummy_pipe_end_1, "EC") + mock_pipe_end_0, mock_pipe_end_1, "EC") self.console.oobm_queue = mock.MagicMock() @mock.patch('console.Console.CheckForEnhancedECImage') |