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

Side by Side Diff: content/public/test/javascript_test_observer.cc

Issue 286243003: Move JavascriptTestObserver from chrome to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 "chrome/test/base/javascript_test_observer.h" 5 #include "content/public/test/javascript_test_observer.h"
6 6
7 #include "content/public/browser/dom_operation_notification_details.h" 7 #include "content/public/browser/dom_operation_notification_details.h"
8 #include "content/public/browser/notification_types.h" 8 #include "content/public/browser/notification_types.h"
9 #include "content/public/browser/render_view_host.h" 9 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
11 #include "content/public/test/test_utils.h" 11 #include "content/public/test/test_utils.h"
12 12
13 namespace content {
14
13 TestMessageHandler::TestMessageHandler() : ok_(true) { 15 TestMessageHandler::TestMessageHandler() : ok_(true) {
14 } 16 }
15 17
16 TestMessageHandler::~TestMessageHandler() { 18 TestMessageHandler::~TestMessageHandler() {
17 } 19 }
18 20
19 void TestMessageHandler::SetError(const std::string& message) { 21 void TestMessageHandler::SetError(const std::string& message) {
20 ok_ = false; 22 ok_ = false;
21 error_message_ = message; 23 error_message_ = message;
22 } 24 }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void JavascriptTestObserver::Continue() { 83 void JavascriptTestObserver::Continue() {
82 } 84 }
83 85
84 void JavascriptTestObserver::EndTest() { 86 void JavascriptTestObserver::EndTest() {
85 finished_ = true; 87 finished_ = true;
86 if (running_) { 88 if (running_) {
87 running_ = false; 89 running_ = false;
88 base::MessageLoopForUI::current()->Quit(); 90 base::MessageLoopForUI::current()->Quit();
89 } 91 }
90 } 92 }
93
94 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698