| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "base/ref_counted.h" | 6 #include "base/ref_counted.h" |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/browser_thread.h" | 9 #include "chrome/browser/browser_thread.h" |
| 10 #include "chrome/browser/host_zoom_map.h" | 10 #include "chrome/browser/host_zoom_map.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 EXPECT_EQ(kZoomLevel, map->GetZoomLevel(file_url1_)); | 123 EXPECT_EQ(kZoomLevel, map->GetZoomLevel(file_url1_)); |
| 124 EXPECT_EQ(0, map->GetZoomLevel(file_url2_)); | 124 EXPECT_EQ(0, map->GetZoomLevel(file_url2_)); |
| 125 } | 125 } |
| 126 | 126 |
| 127 TEST_F(HostZoomMapTest, ChangeDefaultZoomLevel) { | 127 TEST_F(HostZoomMapTest, ChangeDefaultZoomLevel) { |
| 128 FundamentalValue zoom_level(kDefaultZoomLevel); | 128 FundamentalValue zoom_level(kDefaultZoomLevel); |
| 129 prefs_->Set(prefs::kDefaultZoomLevel, zoom_level); | 129 prefs_->Set(prefs::kDefaultZoomLevel, zoom_level); |
| 130 scoped_refptr<HostZoomMap> map(new HostZoomMap(&profile_)); | 130 scoped_refptr<HostZoomMap> map(new HostZoomMap(&profile_)); |
| 131 EXPECT_EQ(kDefaultZoomLevel, map->GetZoomLevel(url_)); | 131 EXPECT_EQ(kDefaultZoomLevel, map->GetZoomLevel(url_)); |
| 132 } | 132 } |
| OLD | NEW |