aboutsummaryrefslogtreecommitdiff
path: root/common/tests/robotests/src/com/android/tv/common/compat/internal/PrivateRecordingCommandTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'common/tests/robotests/src/com/android/tv/common/compat/internal/PrivateRecordingCommandTest.java')
-rw-r--r--common/tests/robotests/src/com/android/tv/common/compat/internal/PrivateRecordingCommandTest.java63
1 files changed, 0 insertions, 63 deletions
diff --git a/common/tests/robotests/src/com/android/tv/common/compat/internal/PrivateRecordingCommandTest.java b/common/tests/robotests/src/com/android/tv/common/compat/internal/PrivateRecordingCommandTest.java
deleted file mode 100644
index 1a3c0916..00000000
--- a/common/tests/robotests/src/com/android/tv/common/compat/internal/PrivateRecordingCommandTest.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (C) 2018 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License
- */
-package com.android.tv.common.compat.internal;
-
-import static org.mockito.Mockito.only;
-import static org.mockito.Mockito.verify;
-
-import com.android.tv.common.compat.api.RecordingSessionCompatCommands;
-import com.android.tv.testing.constants.ConfigConstants;
-
-import com.google.protobuf.InvalidProtocolBufferException;
-import com.google.testing.mockito.Mocks;
-
-import org.junit.Before;
-import org.junit.Rule;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.mockito.Mock;
-import org.robolectric.RobolectricTestRunner;
-import org.robolectric.annotation.Config;
-
-/**
- * Tests sending {@link RecordingCommands.PrivateRecordingCommand}s to a {@link
- * RecordingSessionCompatCommands} from {@link RecordingClientCompatProcessor} via {@link
- * RecordingSessionCompatProcessor}.
- */
-@RunWith(RobolectricTestRunner.class)
-@Config(sdk = ConfigConstants.SDK)
-public class PrivateRecordingCommandTest {
- @Rule public final Mocks mocks = new Mocks(this);
-
- @Mock private RecordingSessionCompatCommands mCallback;
-
- private RecordingClientCompatProcessor mCompatProcessor;
-
- @Before
- public void setUp() {
- RecordingSessionCompatProcessor sessionCompatProcessor =
- new RecordingSessionCompatProcessor(null, mCallback);
- mCompatProcessor =
- new RecordingClientCompatProcessor(
- sessionCompatProcessor::handleAppPrivateCommand, null);
- }
-
- @Test
- public void notifyDevToast() throws InvalidProtocolBufferException {
- mCompatProcessor.devMessage("Hello Recorders");
- verify(mCallback, only()).onDevMessage("Hello Recorders");
- }
-}