Coverage for /Syzygy/agent/asan/memory_notifiers/shadow_memory_notifier.h

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
100.0%220.C++source

Line-by-line coverage:

   1    :  // Copyright 2014 Google Inc. All Rights Reserved.
   2    :  //
   3    :  // Licensed under the Apache License, Version 2.0 (the "License");
   4    :  // you may not use this file except in compliance with the License.
   5    :  // You may obtain a copy of the License at
   6    :  //
   7    :  //     http://www.apache.org/licenses/LICENSE-2.0
   8    :  //
   9    :  // Unless required by applicable law or agreed to in writing, software
  10    :  // distributed under the License is distributed on an "AS IS" BASIS,
  11    :  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12    :  // See the License for the specific language governing permissions and
  13    :  // limitations under the License.
  14    :  //
  15    :  // Declares ShadowMemoryNotifier, an implementation of MemoryNotifierInterface
  16    :  // that modifies the shadow memory upon receiving memory notifications.
  17    :  
  18    :  #ifndef SYZYGY_AGENT_ASAN_MEMORY_NOTIFIERS_SHADOW_MEMORY_NOTIFIER_H_
  19    :  #define SYZYGY_AGENT_ASAN_MEMORY_NOTIFIERS_SHADOW_MEMORY_NOTIFIER_H_
  20    :  
  21    :  #include "base/logging.h"
  22    :  #include "syzygy/agent/asan/memory_notifier.h"
  23    :  
  24    :  namespace agent {
  25    :  namespace asan {
  26    :  namespace memory_notifiers {
  27    :  
  28    :  // Declares a simple interface that is used by internal runtime components to
  29    :  // notify the runtime of their own memory use.
  30    :  class ShadowMemoryNotifier : public MemoryNotifierInterface {
  31    :   public:
  32    :    // Constructor.
  33  E :    ShadowMemoryNotifier() { }
  34    :  
  35    :    // Virtual destructor.
  36  E :    virtual ~ShadowMemoryNotifier() { }
  37    :  
  38    :    // @name MemoryNotifierInterface implementation.
  39    :    // @{
  40    :    virtual void NotifyInternalUse(const void* address, size_t size);
  41    :    virtual void NotifyFutureHeapUse(const void* address, size_t size);
  42    :    virtual void NotifyReturnedToOS(const void* address, size_t size);
  43    :    // @}
  44    :  
  45    :   private:
  46    :    DISALLOW_COPY_AND_ASSIGN(ShadowMemoryNotifier);
  47    :  };
  48    :  
  49    :  }  // namespace memory_notifiers
  50    :  }  // namespace asan
  51    :  }  // namespace agent
  52    :  
  53    :  #endif  // SYZYGY_AGENT_ASAN_MEMORY_NOTIFIERS_SHADOW_MEMORY_NOTIFIER_H_

Coverage information generated Thu Mar 26 16:15:41 2015.