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

Side by Side Diff: chrome/browser/extensions/extension_dom_clipboard_apitest.cc

Issue 12518036: net: move host_resolver files from net/base to net/dns (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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) 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/stringprintf.h" 5 #include "base/stringprintf.h"
6 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" 8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
9 #include "chrome/test/base/ui_test_utils.h" 9 #include "chrome/test/base/ui_test_utils.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
11 #include "content/public/test/browser_test_utils.h" 11 #include "content/public/test/browser_test_utils.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "net/base/mock_host_resolver.h" 13 #include "net/dns/mock_host_resolver.h"
14 14
15 namespace { 15 namespace {
16 16
17 class ClipboardApiTest : public ExtensionApiTest { 17 class ClipboardApiTest : public ExtensionApiTest {
18 public: 18 public:
19 bool LoadHostedApp(const std::string& app_name, 19 bool LoadHostedApp(const std::string& app_name,
20 const std::string& launch_page); 20 const std::string& launch_page);
21 bool ExecuteCopyInSelectedTab(bool* result); 21 bool ExecuteCopyInSelectedTab(bool* result);
22 bool ExecutePasteInSelectedTab(bool* result); 22 bool ExecutePasteInSelectedTab(bool* result);
23 23
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 ASSERT_TRUE(LoadHostedApp("hosted_app_no_permission", "main.html")) 104 ASSERT_TRUE(LoadHostedApp("hosted_app_no_permission", "main.html"))
105 << message_; 105 << message_;
106 106
107 bool result = false; 107 bool result = false;
108 ASSERT_TRUE(ExecuteCopyInSelectedTab(&result)) << message_; 108 ASSERT_TRUE(ExecuteCopyInSelectedTab(&result)) << message_;
109 EXPECT_FALSE(result); 109 EXPECT_FALSE(result);
110 ASSERT_TRUE(ExecutePasteInSelectedTab(&result)) << message_; 110 ASSERT_TRUE(ExecutePasteInSelectedTab(&result)) << message_;
111 EXPECT_FALSE(result); 111 EXPECT_FALSE(result);
112 } 112 }
113 113
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698