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]; |
} |