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

Side by Side Diff: content/shell/renderer/test_runner/test_runner.h

Issue 477343002: Revert "Add IPC benchmarking API to Blink TestRunner" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 // located at a particular point in the WebView (if there is such an image), 551 // located at a particular point in the WebView (if there is such an image),
552 // reads back its pixels, and provides the snapshot to the callback. If there 552 // reads back its pixels, and provides the snapshot to the callback. If there
553 // is no image at that point, calls the callback with (0, 0, empty_snapshot). 553 // is no image at that point, calls the callback with (0, 0, empty_snapshot).
554 void CopyImageAtAndCapturePixelsAsyncThen( 554 void CopyImageAtAndCapturePixelsAsyncThen(
555 int x, int y, const v8::Handle<v8::Function> callback); 555 int x, int y, const v8::Handle<v8::Function> callback);
556 556
557 void SetMockPushClientSuccess(const std::string& endpoint, 557 void SetMockPushClientSuccess(const std::string& endpoint,
558 const std::string& registration_id); 558 const std::string& registration_id);
559 void SetMockPushClientError(const std::string& message); 559 void SetMockPushClientError(const std::string& message);
560 560
561 void RequestEcho(int id, int size);
562 int GetLastEchoId() const;
563 int GetLastEchoSize() const;
564
565 /////////////////////////////////////////////////////////////////////////// 561 ///////////////////////////////////////////////////////////////////////////
566 // Internal helpers 562 // Internal helpers
567 563
568 void CapturePixelsCallback(scoped_ptr<InvokeCallbackTask> task, 564 void CapturePixelsCallback(scoped_ptr<InvokeCallbackTask> task,
569 const SkBitmap& snapshot); 565 const SkBitmap& snapshot);
570 566
571 void CheckResponseMimeType(); 567 void CheckResponseMimeType();
572 void CompleteNotifyDone(); 568 void CompleteNotifyDone();
573 569
574 void DidAcquirePointerLockInternal(); 570 void DidAcquirePointerLockInternal();
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 bool use_mock_theme_; 766 bool use_mock_theme_;
771 767
772 base::WeakPtrFactory<TestRunner> weak_factory_; 768 base::WeakPtrFactory<TestRunner> weak_factory_;
773 769
774 DISALLOW_COPY_AND_ASSIGN(TestRunner); 770 DISALLOW_COPY_AND_ASSIGN(TestRunner);
775 }; 771 };
776 772
777 } // namespace content 773 } // namespace content
778 774
779 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_ 775 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/WebTestDelegate.h ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698