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

Unified Diff: chrome/browser/ui/webui/theme_source_unittest.cc

Issue 2381093002: Move GetNewTabCSS() caching off the startup path. (Closed)
Patch Set: Fix test. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/theme_source.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/theme_source_unittest.cc
diff --git a/chrome/browser/ui/webui/theme_source_unittest.cc b/chrome/browser/ui/webui/theme_source_unittest.cc
index 4308ff39237ea41927d14b9c1d3e522348fda130..5183675e57b0ab867112e832a117cbd90d454c74 100644
--- a/chrome/browser/ui/webui/theme_source_unittest.cc
+++ b/chrome/browser/ui/webui/theme_source_unittest.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/memory/ref_counted_memory.h"
#include "base/message_loop/message_loop.h"
+#include "base/run_loop.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/theme_source.h"
#include "chrome/common/url_constants.h"
@@ -87,9 +88,11 @@ TEST_F(WebUISourcesTest, ThemeSourceCSS) {
size_t empty_size = 0;
StartDataRequest("css/new_tab_theme.css");
+ base::RunLoop().RunUntilIdle();
EXPECT_NE(result_data_size_, empty_size);
StartDataRequest("css/new_tab_theme.css?pie");
+ base::RunLoop().RunUntilIdle();
EXPECT_NE(result_data_size_, empty_size);
#if !DCHECK_IS_ON()
« no previous file with comments | « chrome/browser/ui/webui/theme_source.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698