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

Side by Side Diff: testing/embedder_test_timer_handling_delegate.h

Issue 1707923002: Expand all paths to be based off pdfium/ directory (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Sort headers Created 4 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
OLDNEW
1 // Copyright 2015 PDFium Authors. All rights reserved. 1 // Copyright 2015 PDFium 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 TESTING_EMBEDDER_TEST_TIMER_HANDLING_DELEGATE_H_ 5 #ifndef TESTING_EMBEDDER_TEST_TIMER_HANDLING_DELEGATE_H_
6 #define TESTING_EMBEDDER_TEST_TIMER_HANDLING_DELEGATE_H_ 6 #define TESTING_EMBEDDER_TEST_TIMER_HANDLING_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "embedder_test.h" 13 #include "testing/embedder_test.h"
14 #include "test_support.h" 14 #include "testing/test_support.h"
15 15
16 class EmbedderTestTimerHandlingDelegate : public EmbedderTest::Delegate { 16 class EmbedderTestTimerHandlingDelegate : public EmbedderTest::Delegate {
17 public: 17 public:
18 struct ReceivedAlert { 18 struct ReceivedAlert {
19 ReceivedAlert(FPDF_WIDESTRING message_in, 19 ReceivedAlert(FPDF_WIDESTRING message_in,
20 FPDF_WIDESTRING title_in, 20 FPDF_WIDESTRING title_in,
21 int type_in, 21 int type_in,
22 int icon_in) 22 int icon_in)
23 : type(type_in), icon(icon_in) { 23 : type(type_in), icon(icon_in) {
24 message = GetPlatformWString(message_in); 24 message = GetPlatformWString(message_in);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 protected: 76 protected:
77 using Timer = std::pair<int, TimerCallback>; // ID, callback pair. 77 using Timer = std::pair<int, TimerCallback>; // ID, callback pair.
78 std::multimap<int, Timer> expiry_to_timer_map_; // Keyed by timeout. 78 std::multimap<int, Timer> expiry_to_timer_map_; // Keyed by timeout.
79 int next_timer_id_ = 0; 79 int next_timer_id_ = 0;
80 int imaginary_elapsed_msecs_ = 0; 80 int imaginary_elapsed_msecs_ = 0;
81 std::vector<ReceivedAlert> alerts_; 81 std::vector<ReceivedAlert> alerts_;
82 }; 82 };
83 83
84 #endif // TESTING_EMBEDDER_TEST_TIMER_HANDLING_DELEGATE_H_ 84 #endif // TESTING_EMBEDDER_TEST_TIMER_HANDLING_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698