| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <vector> | 6 #include <vector> |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| 11 #include "chrome/browser/chromeos/memory/oom_priority_manager.h" | 11 #include "chrome/browser/chromeos/memory/oom_priority_manager.h" |
| 12 #include "chrome/common/url_constants.h" | 12 #include "chrome/common/url_constants.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 namespace chromeos { | 16 namespace chromeos { |
| 17 | 17 |
| 18 typedef testing::Test OomPriorityManagerTest; | 18 typedef testing::Test OomPriorityManagerTest; |
| 19 | 19 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 GURL(chrome::kChromeUIDiscardsURL))); | 136 GURL(chrome::kChromeUIDiscardsURL))); |
| 137 EXPECT_FALSE(OomPriorityManager::IsReloadableUI( | 137 EXPECT_FALSE(OomPriorityManager::IsReloadableUI( |
| 138 GURL(chrome::kChromeUINetInternalsURL))); | 138 GURL(chrome::kChromeUINetInternalsURL))); |
| 139 | 139 |
| 140 // Prefix matches are included. | 140 // Prefix matches are included. |
| 141 EXPECT_TRUE(OomPriorityManager::IsReloadableUI( | 141 EXPECT_TRUE(OomPriorityManager::IsReloadableUI( |
| 142 GURL("chrome://settings/fakeSetting"))); | 142 GURL("chrome://settings/fakeSetting"))); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace chromeos | 145 } // namespace chromeos |
| OLD | NEW |