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

Side by Side Diff: chrome/browser/intents/native_services_browsertest.cc

Issue 12212048: Linux/ChromeOS Chromium style checker cleanup, chrome/browser edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 <algorithm> 5 #include <algorithm>
6 #include <iterator> 6 #include <iterator>
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 Listener* listener_; 120 Listener* listener_;
121 FilePath test_file_; 121 FilePath test_file_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(TestSelectFileDialog); 123 DISALLOW_COPY_AND_ASSIGN(TestSelectFileDialog);
124 }; 124 };
125 125
126 class TestSelectFileDialogFactory : public ui::SelectFileDialogFactory { 126 class TestSelectFileDialogFactory : public ui::SelectFileDialogFactory {
127 public: 127 public:
128 virtual ui::SelectFileDialog* Create( 128 virtual ui::SelectFileDialog* Create(
129 ui::SelectFileDialog::Listener* listener, 129 ui::SelectFileDialog::Listener* listener,
130 ui::SelectFilePolicy* policy) { 130 ui::SelectFilePolicy* policy) OVERRIDE {
131 return TestSelectFileDialog::Create(listener, policy); 131 return TestSelectFileDialog::Create(listener, policy);
132 } 132 }
133 }; 133 };
134 134
135 } // namespace 135 } // namespace
136 136
137 class NativeServicesBrowserTest : public InProcessBrowserTest { 137 class NativeServicesBrowserTest : public InProcessBrowserTest {
138 protected: 138 protected:
139 NativeServicesBrowserTest() {} 139 NativeServicesBrowserTest() {}
140 140
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 factory.CreateServiceInstance(url, intent, tab)); 202 factory.CreateServiceInstance(url, intent, tab));
203 service->HandleIntent(&dispatcher); 203 service->HandleIntent(&dispatcher);
204 204
205 ASSERT_TRUE(dispatcher.reply_); 205 ASSERT_TRUE(dispatcher.reply_);
206 EXPECT_EQ( 206 EXPECT_EQ(
207 webkit_glue::WebIntentReply( 207 webkit_glue::WebIntentReply(
208 webkit_glue::WEB_INTENT_REPLY_FAILURE, 208 webkit_glue::WEB_INTENT_REPLY_FAILURE,
209 string16()), 209 string16()),
210 *dispatcher.reply_.get()); 210 *dispatcher.reply_.get());
211 } 211 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698