OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2008 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2008 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 // Fails on Android: https://bugs.chromium.org/p/webrtc/issues/detail?id=4364. | 40 // Fails on Android: https://bugs.chromium.org/p/webrtc/issues/detail?id=4364. |
41 #define MAYBE_OptionsFileTest DISABLED_OptionsFileTest | 41 #define MAYBE_OptionsFileTest DISABLED_OptionsFileTest |
42 #else | 42 #else |
43 #define MAYBE_OptionsFileTest OptionsFileTest | 43 #define MAYBE_OptionsFileTest OptionsFileTest |
44 #endif | 44 #endif |
45 | 45 |
46 class MAYBE_OptionsFileTest : public testing::Test { | 46 class MAYBE_OptionsFileTest : public testing::Test { |
47 public: | 47 public: |
48 MAYBE_OptionsFileTest() { | 48 MAYBE_OptionsFileTest() { |
49 Pathname dir; | 49 Pathname dir; |
50 RTC_CHECK(Filesystem::GetTemporaryFolder(dir, true, NULL)); | 50 RTC_CHECK(Filesystem::GetTemporaryFolder(dir, true, nullptr)); |
51 test_file_ = Filesystem::TempFilename(dir, ".testfile"); | 51 test_file_ = Filesystem::TempFilename(dir, ".testfile"); |
52 OpenStore(); | 52 OpenStore(); |
53 } | 53 } |
54 | 54 |
55 ~MAYBE_OptionsFileTest() override { | 55 ~MAYBE_OptionsFileTest() override { |
56 remove(test_file_.c_str()); | 56 remove(test_file_.c_str()); |
57 } | 57 } |
58 | 58 |
59 protected: | 59 protected: |
60 void OpenStore() { | 60 void OpenStore() { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 EXPECT_TRUE(store_->GetStringValue(kEmptyString, &out)); | 173 EXPECT_TRUE(store_->GetStringValue(kEmptyString, &out)); |
174 EXPECT_EQ(kTestString2, out); | 174 EXPECT_EQ(kTestString2, out); |
175 EXPECT_TRUE(store_->SetStringValue(kTestOptionB, kEmptyString)); | 175 EXPECT_TRUE(store_->SetStringValue(kTestOptionB, kEmptyString)); |
176 EXPECT_TRUE(store_->Save()); | 176 EXPECT_TRUE(store_->Save()); |
177 EXPECT_TRUE(store_->Load()); | 177 EXPECT_TRUE(store_->Load()); |
178 EXPECT_TRUE(store_->GetStringValue(kTestOptionB, &out)); | 178 EXPECT_TRUE(store_->GetStringValue(kTestOptionB, &out)); |
179 EXPECT_EQ(kEmptyString, out); | 179 EXPECT_EQ(kEmptyString, out); |
180 } | 180 } |
181 | 181 |
182 } // namespace rtc | 182 } // namespace rtc |
OLD | NEW |