• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 
5 #ifndef CEF_TESTS_CEFTESTS_TRACK_CALLBACK_H_
6 #define CEF_TESTS_CEFTESTS_TRACK_CALLBACK_H_
7 #pragma once
8 
9 class TrackCallback {
10  public:
TrackCallback()11   TrackCallback() : gotit_(false) {}
yes()12   void yes() { gotit_ = true; }
isSet()13   bool isSet() { return gotit_; }
reset()14   void reset() { gotit_ = false; }
15   operator bool() const { return gotit_; }
16 
17  protected:
18   bool gotit_;
19 };
20 
21 #endif  // CEF_TESTS_CEFTESTS_TRACK_CALLBACK_H_
22