| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Make sure the other id's are not hidden. | 48 // Make sure the other id's are not hidden. |
| 49 ExtensionList::const_iterator iter = extensions_.begin() + 1; | 49 ExtensionList::const_iterator iter = extensions_.begin() + 1; |
| 50 for (; iter != extensions_.end(); ++iter) { | 50 for (; iter != extensions_.end(); ++iter) { |
| 51 SCOPED_TRACE(base::StringPrintf("Loop %d ", | 51 SCOPED_TRACE(base::StringPrintf("Loop %d ", |
| 52 static_cast<int>(iter - extensions_.begin()))); | 52 static_cast<int>(iter - extensions_.begin()))); |
| 53 EXPECT_TRUE(action_api->GetBrowserActionVisibility((*iter)->id())); | 53 EXPECT_TRUE(action_api->GetBrowserActionVisibility((*iter)->id())); |
| 54 } | 54 } |
| 55 } | 55 } |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 scoped_ptr<TestingProfile> profile_; | 58 std::unique_ptr<TestingProfile> profile_; |
| 59 ExtensionList extensions_; | 59 ExtensionList extensions_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefsHidingBrowserActions); | 61 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefsHidingBrowserActions); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 TEST_F(ExtensionPrefsHidingBrowserActions, ForceHide) {} | 64 TEST_F(ExtensionPrefsHidingBrowserActions, ForceHide) {} |
| 65 | 65 |
| 66 } // namespace extensions | 66 } // namespace extensions |
| OLD | NEW |