OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/chrome_thread.h" | 9 #include "chrome/browser/chrome_thread.h" |
10 #include "chrome/browser/host_zoom_map.h" | 10 #include "chrome/browser/host_zoom_map.h" |
11 #include "chrome/browser/pref_service.h" | 11 #include "chrome/browser/prefs/pref_service.h" |
12 #include "chrome/common/notification_details.h" | 12 #include "chrome/common/notification_details.h" |
13 #include "chrome/common/notification_observer_mock.h" | 13 #include "chrome/common/notification_observer_mock.h" |
14 #include "chrome/common/notification_registrar.h" | 14 #include "chrome/common/notification_registrar.h" |
15 #include "chrome/common/notification_service.h" | 15 #include "chrome/common/notification_service.h" |
16 #include "chrome/common/notification_type.h" | 16 #include "chrome/common/notification_type.h" |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "chrome/test/testing_profile.h" | 18 #include "chrome/test/testing_profile.h" |
19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 TEST_F(HostZoomMapTest, NoHost) { | 112 TEST_F(HostZoomMapTest, NoHost) { |
113 scoped_refptr<HostZoomMap> map(new HostZoomMap(&profile_)); | 113 scoped_refptr<HostZoomMap> map(new HostZoomMap(&profile_)); |
114 GURL file_url1_("file:///tmp/test.html"); | 114 GURL file_url1_("file:///tmp/test.html"); |
115 GURL file_url2_("file:///tmp/other.html"); | 115 GURL file_url2_("file:///tmp/other.html"); |
116 map->SetZoomLevel(file_url1_, kZoomLevel); | 116 map->SetZoomLevel(file_url1_, kZoomLevel); |
117 | 117 |
118 EXPECT_EQ(kZoomLevel, map->GetZoomLevel(file_url1_)); | 118 EXPECT_EQ(kZoomLevel, map->GetZoomLevel(file_url1_)); |
119 EXPECT_EQ(0, map->GetZoomLevel(file_url2_)); | 119 EXPECT_EQ(0, map->GetZoomLevel(file_url2_)); |
120 } | 120 } |
OLD | NEW |