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

Side by Side Diff: chrome/browser/dom_ui/dom_ui_theme_source_unittest.cc

Issue 3129007: FBTF: Forward declare everything possible in testing_profile.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: argh mac problems now Created 10 years, 4 months 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
« no previous file with comments | « chrome/browser/cookies_tree_model_unittest.cc ('k') | chrome/browser/dom_ui/dom_ui_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/ref_counted_memory.h"
5 #include "chrome/browser/browser_theme_provider.h" 6 #include "chrome/browser/browser_theme_provider.h"
6 #include "chrome/browser/chrome_thread.h" 7 #include "chrome/browser/chrome_thread.h"
7 #include "chrome/browser/dom_ui/dom_ui_theme_source.h" 8 #include "chrome/browser/dom_ui/dom_ui_theme_source.h"
8 #include "chrome/browser/profile.h" 9 #include "chrome/browser/profile.h"
9 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
10 #include "chrome/test/testing_profile.h" 11 #include "chrome/test/testing_profile.h"
11 #include "grit/theme_resources.h" 12 #include "grit/theme_resources.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 // A mock ThemeSource (so we can override SendResponse to get at its data). 15 // A mock ThemeSource (so we can override SendResponse to get at its data).
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 91
91 theme_source()->StartDataRequest("css/newtab.css?pie", false, 3); 92 theme_source()->StartDataRequest("css/newtab.css?pie", false, 3);
92 EXPECT_EQ(theme_source()->result_request_id_, 3); 93 EXPECT_EQ(theme_source()->result_request_id_, 3);
93 EXPECT_NE(theme_source()->result_data_size_, empty_size); 94 EXPECT_NE(theme_source()->result_data_size_, empty_size);
94 95
95 // Check that we send NULL back when we can't find what we're looking for. 96 // Check that we send NULL back when we can't find what we're looking for.
96 theme_source()->StartDataRequest("css/WRONGURL", false, 7); 97 theme_source()->StartDataRequest("css/WRONGURL", false, 7);
97 EXPECT_EQ(theme_source()->result_request_id_, 7); 98 EXPECT_EQ(theme_source()->result_request_id_, 7);
98 EXPECT_EQ(theme_source()->result_data_size_, empty_size); 99 EXPECT_EQ(theme_source()->result_data_size_, empty_size);
99 } 100 }
OLDNEW
« no previous file with comments | « chrome/browser/cookies_tree_model_unittest.cc ('k') | chrome/browser/dom_ui/dom_ui_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698