| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/installer/util/legacy_firewall_manager_win.h" | 5 #include "chrome/installer/util/legacy_firewall_manager_win.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 8 #include "base/process/process_info.h" | 9 #include "base/process/process_info.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 11 |
| 11 namespace installer { | 12 namespace installer { |
| 12 | 13 |
| 13 class LegacyFirewallManagerTest : public ::testing::Test { | 14 class LegacyFirewallManagerTest : public ::testing::Test { |
| 14 public: | 15 public: |
| 15 LegacyFirewallManagerTest() : skip_test_(true) {} | 16 LegacyFirewallManagerTest() : skip_test_(true) {} |
| 16 | 17 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 return; | 64 return; |
| 64 EXPECT_TRUE(manager_.SetAllowIncomingConnection(false)); | 65 EXPECT_TRUE(manager_.SetAllowIncomingConnection(false)); |
| 65 bool allowed = true; | 66 bool allowed = true; |
| 66 EXPECT_TRUE(manager_.GetAllowIncomingConnection(&allowed)); | 67 EXPECT_TRUE(manager_.GetAllowIncomingConnection(&allowed)); |
| 67 EXPECT_FALSE(allowed); | 68 EXPECT_FALSE(allowed); |
| 68 manager_.DeleteRule(); | 69 manager_.DeleteRule(); |
| 69 EXPECT_FALSE(manager_.GetAllowIncomingConnection(NULL)); | 70 EXPECT_FALSE(manager_.GetAllowIncomingConnection(NULL)); |
| 70 } | 71 } |
| 71 | 72 |
| 72 } // namespace installer | 73 } // namespace installer |
| OLD | NEW |