Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(690)

Side by Side Diff: chrome/browser/content_setting_image_model_unittest.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/content_setting_image_model.h" 5 #include "chrome/browser/content_setting_image_model.h"
6 6
7 #include "chrome/browser/browser_thread.h" 7 #include "chrome/browser/browser_thread.h"
8 #include "chrome/browser/content_settings/host_content_settings_map.h" 8 #include "chrome/browser/content_settings/host_content_settings_map.h"
9 #include "chrome/browser/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 10 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
11 #include "chrome/browser/tab_contents/test_tab_contents.h" 11 #include "chrome/browser/tab_contents/test_tab_contents.h"
12 #include "chrome/test/testing_profile.h" 12 #include "chrome/test/testing_profile.h"
13 #include "net/base/cookie_options.h" 13 #include "net/base/cookie_options.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 class ContentSettingImageModelTest : public RenderViewHostTestHarness { 16 class ContentSettingImageModelTest : public RenderViewHostTestHarness {
17 public: 17 public:
18 ContentSettingImageModelTest() 18 ContentSettingImageModelTest()
19 : RenderViewHostTestHarness(), 19 : RenderViewHostTestHarness(),
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 EXPECT_EQ(std::string(), content_setting_image_model->get_tooltip()); 59 EXPECT_EQ(std::string(), content_setting_image_model->get_tooltip());
60 60
61 net::CookieOptions options; 61 net::CookieOptions options;
62 content_settings->OnCookieAccessed( 62 content_settings->OnCookieAccessed(
63 GURL("http://google.com"), "A=B", options, false); 63 GURL("http://google.com"), "A=B", options, false);
64 content_setting_image_model->UpdateFromTabContents(&tab_contents); 64 content_setting_image_model->UpdateFromTabContents(&tab_contents);
65 EXPECT_TRUE(content_setting_image_model->is_visible()); 65 EXPECT_TRUE(content_setting_image_model->is_visible());
66 EXPECT_NE(0, content_setting_image_model->get_icon()); 66 EXPECT_NE(0, content_setting_image_model->get_icon());
67 EXPECT_NE(std::string(), content_setting_image_model->get_tooltip()); 67 EXPECT_NE(std::string(), content_setting_image_model->get_tooltip());
68 } 68 }
OLDNEW
« no previous file with comments | « chrome/browser/content_setting_image_model.cc ('k') | chrome/browser/content_settings/host_content_settings_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698