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

Side by Side Diff: chrome/browser/ui/intents/web_intents_model_unittest.cc

Issue 9150017: Add a Content API around BrowserChildProcessHost, similar to what was done with ChildProcessHost.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix?! Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_util.h" 5 #include "base/file_util.h"
6 #include "base/message_loop.h"
6 #include "base/scoped_temp_dir.h" 7 #include "base/scoped_temp_dir.h"
7 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
8 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
9 #include "base/values.h" 10 #include "base/values.h"
10 #include "chrome/browser/intents/web_intents_registry.h" 11 #include "chrome/browser/intents/web_intents_registry.h"
11 #include "chrome/browser/ui/intents/web_intents_model.h" 12 #include "chrome/browser/ui/intents/web_intents_model.h"
12 #include "chrome/browser/webdata/web_data_service.h" 13 #include "chrome/browser/webdata/web_data_service.h"
13 #include "content/test/test_browser_thread.h" 14 #include "content/test/test_browser_thread.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "ui/base/models/tree_node_model.h" 16 #include "ui/base/models/tree_node_model.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 203
203 WebIntentsTreeNode* node = intents_model.GetTreeNode("www.google.com"); 204 WebIntentsTreeNode* node = intents_model.GetTreeNode("www.google.com");
204 ASSERT_EQ(2, node->child_count()); 205 ASSERT_EQ(2, node->child_count());
205 node = node->GetChild(1); 206 node = node->GetChild(1);
206 ASSERT_EQ(WebIntentsTreeNode::TYPE_SERVICE, node->Type()); 207 ASSERT_EQ(WebIntentsTreeNode::TYPE_SERVICE, node->Type());
207 ASSERT_EQ(WebIntentsTreeNode::TYPE_SERVICE, node->Type()); 208 ASSERT_EQ(WebIntentsTreeNode::TYPE_SERVICE, node->Type());
208 ServiceTreeNode* snode = static_cast<ServiceTreeNode*>(node); 209 ServiceTreeNode* snode = static_cast<ServiceTreeNode*>(node);
209 EXPECT_EQ(ASCIIToUTF16("EDIT"), snode->Action()); 210 EXPECT_EQ(ASCIIToUTF16("EDIT"), snode->Action());
210 EXPECT_EQ(ASCIIToUTF16("http://www.google.com/edit"), snode->ServiceUrl()); 211 EXPECT_EQ(ASCIIToUTF16("http://www.google.com/edit"), snode->ServiceUrl());
211 } 212 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc ('k') | chrome/browser/ui/webui/options/chromeos/user_image_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698