| 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/advanced_firewall_manager_win.h" | 5 #include "chrome/installer/util/advanced_firewall_manager_win.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
| 7 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 8 #include "base/process/process_info.h" | 11 #include "base/process/process_info.h" |
| 9 #include "base/win/scoped_bstr.h" | 12 #include "base/win/scoped_bstr.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 14 |
| 12 namespace installer { | 15 namespace installer { |
| 13 | 16 |
| 14 class AdvancedFirewallManagerTest : public ::testing::Test { | 17 class AdvancedFirewallManagerTest : public ::testing::Test { |
| 15 public: | 18 public: |
| 16 AdvancedFirewallManagerTest() : skip_test_(true) {} | 19 AdvancedFirewallManagerTest() : skip_test_(true) {} |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 EXPECT_TRUE(manager_.HasAnyRule()); | 79 EXPECT_TRUE(manager_.HasAnyRule()); |
| 77 | 80 |
| 78 manager_.DeleteRuleByName(kRuleName); | 81 manager_.DeleteRuleByName(kRuleName); |
| 79 rule_names.clear(); | 82 rule_names.clear(); |
| 80 GetAllRules(&rule_names); | 83 GetAllRules(&rule_names); |
| 81 EXPECT_TRUE(rule_names.empty()); | 84 EXPECT_TRUE(rule_names.empty()); |
| 82 EXPECT_FALSE(manager_.HasAnyRule()); | 85 EXPECT_FALSE(manager_.HasAnyRule()); |
| 83 } | 86 } |
| 84 | 87 |
| 85 } // namespace installer | 88 } // namespace installer |
| OLD | NEW |