| 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 "base/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "chrome/common/chrome_paths.h" | 9 #include "chrome/common/chrome_paths.h" |
| 10 #include "chrome/common/extensions/extension_action.h" | 10 #include "chrome/browser/extensions/extension_action.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 #include "grit/theme_resources.h" | 12 #include "grit/theme_resources.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
| 15 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "ui/gfx/image/image_skia.h" | 16 #include "ui/gfx/image/image_skia.h" |
| 17 #include "ui/gfx/skia_util.h" | 17 #include "ui/gfx/skia_util.h" |
| 18 #include "webkit/glue/image_decoder.h" | 18 #include "webkit/glue/image_decoder.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 action.SetPopupUrl(ExtensionAction::kDefaultTabId, url_baz); | 225 action.SetPopupUrl(ExtensionAction::kDefaultTabId, url_baz); |
| 226 ASSERT_EQ(url_baz, action.GetPopupUrl(1)); | 226 ASSERT_EQ(url_baz, action.GetPopupUrl(1)); |
| 227 ASSERT_EQ(url_bar, action.GetPopupUrl(100)); | 227 ASSERT_EQ(url_bar, action.GetPopupUrl(100)); |
| 228 | 228 |
| 229 action.ClearAllValuesForTab(100); | 229 action.ClearAllValuesForTab(100); |
| 230 ASSERT_EQ(url_baz, action.GetPopupUrl(1)); | 230 ASSERT_EQ(url_baz, action.GetPopupUrl(1)); |
| 231 ASSERT_EQ(url_baz, action.GetPopupUrl(100)); | 231 ASSERT_EQ(url_baz, action.GetPopupUrl(100)); |
| 232 } | 232 } |
| 233 | 233 |
| 234 } // namespace | 234 } // namespace |
| OLD | NEW |