| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/linux/certificate_watcher.h" | 5 #include "remoting/host/linux/certificate_watcher.h" |
| 6 | 6 |
| 7 #include <cstdlib> | 7 #include <cstdlib> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
| 14 #include "base/message_loop/message_loop.h" |
| 14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 17 |
| 17 namespace remoting { | 18 namespace remoting { |
| 18 | 19 |
| 19 const char kCertFileName[] = "cert9.db"; | 20 const char kCertFileName[] = "cert9.db"; |
| 20 const char kKeyFileName[] = "key4.db"; | 21 const char kKeyFileName[] = "key4.db"; |
| 21 const char kPKCSFileName[] = "pkcs11.txt"; | 22 const char kPKCSFileName[] = "pkcs11.txt"; |
| 22 const char kOtherFileName[] = "testfile.txt"; | 23 const char kOtherFileName[] = "testfile.txt"; |
| 23 | 24 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // NSS DB contents. | 163 // NSS DB contents. |
| 163 EXPECT_EQ(0, restart_count_); | 164 EXPECT_EQ(0, restart_count_); |
| 164 Start(); | 165 Start(); |
| 165 EXPECT_EQ(0, restart_count_); | 166 EXPECT_EQ(0, restart_count_); |
| 166 TouchFile(kOtherFileName); | 167 TouchFile(kOtherFileName); |
| 167 RunAndWait(); | 168 RunAndWait(); |
| 168 EXPECT_EQ(0, restart_count_); | 169 EXPECT_EQ(0, restart_count_); |
| 169 } | 170 } |
| 170 | 171 |
| 171 } // namespace remoting | 172 } // namespace remoting |
| OLD | NEW |