OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/host/pairing_registry_delegate_linux.h" | 5 #include "remoting/host/pairing_registry_delegate_linux.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/files/file_util.h" |
8 #include "base/timer/timer.h" | 8 #include "base/timer/timer.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 namespace remoting { | 12 namespace remoting { |
13 | 13 |
14 using protocol::PairingRegistry; | 14 using protocol::PairingRegistry; |
15 | 15 |
16 class PairingRegistryDelegateLinuxTest : public testing::Test { | 16 class PairingRegistryDelegateLinuxTest : public testing::Test { |
17 public: | 17 public: |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 new PairingRegistryDelegateLinux()); | 80 new PairingRegistryDelegateLinux()); |
81 save_delegate->SetRegistryPathForTesting(temp_registry_); | 81 save_delegate->SetRegistryPathForTesting(temp_registry_); |
82 load_delegate->SetRegistryPathForTesting(temp_registry_); | 82 load_delegate->SetRegistryPathForTesting(temp_registry_); |
83 | 83 |
84 PairingRegistry::Pairing pairing(base::Time::Now(), "xxx", "xxx", "xxx"); | 84 PairingRegistry::Pairing pairing(base::Time::Now(), "xxx", "xxx", "xxx"); |
85 EXPECT_TRUE(save_delegate->Save(pairing)); | 85 EXPECT_TRUE(save_delegate->Save(pairing)); |
86 EXPECT_EQ(load_delegate->Load(pairing.client_id()), pairing); | 86 EXPECT_EQ(load_delegate->Load(pairing.client_id()), pairing); |
87 } | 87 } |
88 | 88 |
89 } // namespace remoting | 89 } // namespace remoting |
OLD | NEW |