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

Side by Side Diff: ppapi/tests/testing_instance.h

Issue 10826164: Add infobar for PPAPI broker usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 3 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
« no previous file with comments | « ppapi/tests/test_broker.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef PPAPI_TESTS_TESTING_INSTANCE_H_ 5 #ifndef PPAPI_TESTS_TESTING_INSTANCE_H_
6 #define PPAPI_TESTS_TESTING_INSTANCE_H_ 6 #define PPAPI_TESTS_TESTING_INSTANCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/utility/completion_callback_factory.h" 10 #include "ppapi/utility/completion_callback_factory.h"
11 11
12 #if defined(__native_client__) 12 #if defined(__native_client__)
13 #include "ppapi/cpp/instance.h" 13 #include "ppapi/cpp/instance.h"
14 #else 14 #else
15 #include "ppapi/cpp/private/instance_private.h" 15 #include "ppapi/cpp/private/instance_private.h"
16 #endif 16 #endif
17 17
18 // Windows defines 'PostMessage', so we have to undef it. 18 // Windows defines 'PostMessage', so we have to undef it.
19 #ifdef PostMessage 19 #ifdef PostMessage
20 #undef PostMessage 20 #undef PostMessage
21 #endif 21 #endif
22 22
23 class TestCase; 23 class TestCase;
24 24
25 // How signaling works: 25 // How signaling works:
26 // 26 //
27 // We want to signal to the Chrome browser test harness 27 // We want to signal to the Chrome browser test harness
28 // (chrome/test/ui/ppapi_uitest.cc) that we're making progress and when we're 28 // (chrome/test/ppapi/ppapi_browsertest.cc) that we're making progress and when
29 // done. This is done using the DOM controlller. The browser test waits for a 29 // we're done. This is done using the DOM controlller. The browser test waits
30 // message from it. We don't want to have a big wait for all tests in a TestCase 30 // for a message from it. We don't want to have a big wait for all tests in a
31 // since they can take a while and it might timeout. So we send it pings 31 // TestCase since they can take a while and it might timeout. So we send it
32 // between each test to tell it that we're still running tests and aren't stuck. 32 // pings between each test to tell it that we're still running tests and aren't
33 // stuck.
33 // 34 //
34 // If the value of the message is "..." then that tells the test runner that 35 // If the value of the message is "..." then that tells the test runner that
35 // the test is progressing. It then waits for the next message until it either 36 // the test is progressing. It then waits for the next message until it either
36 // times out or the value is something other than "...". In this case, the value 37 // times out or the value is something other than "...". In this case, the value
37 // will be either "PASS" or "FAIL [optional message]" corresponding to the 38 // will be either "PASS" or "FAIL [optional message]" corresponding to the
38 // outcome of the entire test case. Timeout will be treated just like a failure 39 // outcome of the entire test case. Timeout will be treated just like a failure
39 // of the entire test case and the test will be terminated. 40 // of the entire test case and the test will be terminated.
40 // 41 //
41 // In trusted builds, we use InstancePrivate and allow tests that use 42 // In trusted builds, we use InstancePrivate and allow tests that use
42 // synchronous scripting. NaCl does not support synchronous scripting. 43 // synchronous scripting. NaCl does not support synchronous scripting.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // WebSocket port. 169 // WebSocket port.
169 int websocket_port_; 170 int websocket_port_;
170 171
171 // At the end of each set of tests, the plugin is removed from the web-page. 172 // At the end of each set of tests, the plugin is removed from the web-page.
172 // However, for some tests, it is desirable to not remove the plguin from the 173 // However, for some tests, it is desirable to not remove the plguin from the
173 // page. 174 // page.
174 bool remove_plugin_; 175 bool remove_plugin_;
175 }; 176 };
176 177
177 #endif // PPAPI_TESTS_TESTING_INSTANCE_H_ 178 #endif // PPAPI_TESTS_TESTING_INSTANCE_H_
OLDNEW
« no previous file with comments | « ppapi/tests/test_broker.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698