Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Unified Diff: webrtc/examples/objc/AppRTCMobile/tests/ARDSettingsModelTests.mm

Issue 2479153002: Rename media constraints model and store. (Closed)
Patch Set: Rebase master Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/examples/objc/AppRTCMobile/tests/ARDMediaConstraintsModelTests.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/examples/objc/AppRTCMobile/tests/ARDSettingsModelTests.mm
diff --git a/webrtc/examples/objc/AppRTCMobile/tests/ARDMediaConstraintsModelTests.mm b/webrtc/examples/objc/AppRTCMobile/tests/ARDSettingsModelTests.mm
similarity index 77%
rename from webrtc/examples/objc/AppRTCMobile/tests/ARDMediaConstraintsModelTests.mm
rename to webrtc/examples/objc/AppRTCMobile/tests/ARDSettingsModelTests.mm
index e4a25b94d891477b021b564f5f2cc92a5e2fc030..5be8b6b5be915afc1dab8fa4f16c2ee90b4a4ef0 100644
--- a/webrtc/examples/objc/AppRTCMobile/tests/ARDMediaConstraintsModelTests.mm
+++ b/webrtc/examples/objc/AppRTCMobile/tests/ARDSettingsModelTests.mm
@@ -10,14 +10,14 @@
#import <Foundation/Foundation.h>
#import <OCMock/OCMock.h>
-#import "ARDMediaConstraintsModel+Private.h"
-#import "ARDMediaConstraintsSettingsStore.h"
+#import "ARDSettingsModel+Private.h"
+#import "ARDSettingsStore.h"
#import "WebRTC/RTCMediaConstraints.h"
#include "webrtc/base/gunit.h"
-@interface ARDMediaConstraintsModelTests : NSObject {
- ARDMediaConstraintsModel *_model;
+@interface ARDSettingsModelTests : NSObject {
+ ARDSettingsModel *_model;
}
- (void)testStoringInavlidConstraintReturnsNo;
@@ -27,18 +27,18 @@
@end
-@implementation ARDMediaConstraintsModelTests
+@implementation ARDSettingsModelTests
- (instancetype)init {
self = [super init];
if (self) {
- _model = [[ARDMediaConstraintsModel alloc] init];
+ _model = [[ARDSettingsModel alloc] init];
}
return self;
}
- (id)setupMockStoreWithMediaConstraintString:(NSString *)constraintString {
- id storeMock = [OCMockObject mockForClass:[ARDMediaConstraintsSettingsStore class]];
+ id storeMock = [OCMockObject mockForClass:[ARDSettingsStore class]];
[([[storeMock stub] andReturn:constraintString]) videoResolutionConstraintsSetting];
id partialMock = [OCMockObject partialMockForObject:_model];
@@ -116,43 +116,43 @@
}
@end
-class ARDMediaConstraintsModelTest : public ::testing::Test {
+class ARDSettingsModelTest : public ::testing::Test {
protected:
- ARDMediaConstraintsModelTests *test;
- ARDMediaConstraintsModelTest() { test = [[ARDMediaConstraintsModelTests alloc] init]; }
+ ARDSettingsModelTests *test;
+ ARDSettingsModelTest() { test = [[ARDSettingsModelTests alloc] init]; }
};
-TEST_F(ARDMediaConstraintsModelTest, DefaultMediaFromStore) {
+TEST_F(ARDSettingsModelTest, DefaultMediaFromStore) {
@autoreleasepool {
[test testDefaultMediaFromStore];
}
}
-TEST_F(ARDMediaConstraintsModelTest, StoringInvalidConstraintsReturnsNo) {
+TEST_F(ARDSettingsModelTest, StoringInvalidConstraintsReturnsNo) {
@autoreleasepool {
[test testStoringInavlidConstraintReturnsNo];
}
}
-TEST_F(ARDMediaConstraintsModelTest, WidthConstraintFromStore) {
+TEST_F(ARDSettingsModelTest, WidthConstraintFromStore) {
@autoreleasepool {
[test testWidthConstraintFromStore];
}
}
-TEST_F(ARDMediaConstraintsModelTest, HeightConstraintFromStore) {
+TEST_F(ARDSettingsModelTest, HeightConstraintFromStore) {
@autoreleasepool {
[test testHeightConstraintFromStore];
}
}
-TEST_F(ARDMediaConstraintsModelTest, ConstratintIsNil) {
+TEST_F(ARDSettingsModelTest, ConstratintIsNil) {
@autoreleasepool {
[test testConstraintComponentIsNilWhenInvalidConstraintString];
}
}
-TEST_F(ARDMediaConstraintsModelTest, DictionaryIsNil) {
+TEST_F(ARDSettingsModelTest, DictionaryIsNil) {
@autoreleasepool {
[test testConstraintsDictionaryIsNilWhenInvalidConstraintString];
}
« no previous file with comments | « webrtc/examples/objc/AppRTCMobile/tests/ARDMediaConstraintsModelTests.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698