Home | History | Annotate | Download | only in policy_hack
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef REMOTING_HOST_POLICY_HACK_MOCK_POLICY_CALLBACK_H_
      6 #define REMOTING_HOST_POLICY_HACK_MOCK_POLICY_CALLBACK_H_
      7 
      8 #include "base/basictypes.h"
      9 #include "base/memory/scoped_ptr.h"
     10 #include "base/values.h"
     11 #include "testing/gmock/include/gmock/gmock.h"
     12 
     13 namespace remoting {
     14 namespace policy_hack {
     15 
     16 class MockPolicyCallback {
     17  public:
     18   MockPolicyCallback();
     19   virtual ~MockPolicyCallback();
     20 
     21   MOCK_METHOD1(OnPolicyUpdatePtr, void(const base::DictionaryValue* policies));
     22   void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies);
     23 
     24  private:
     25   DISALLOW_COPY_AND_ASSIGN(MockPolicyCallback);
     26 };
     27 
     28 }  // namespace policy_hack
     29 }  // namespace remoting
     30 
     31 #endif  // REMOTING_HOST_POLICY_HACK_MOCK_POLICY_CALLBACK_H_
     32