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

Unified Diff: trunk/src/chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_util.h

Issue 60683002: Revert 233048 "Support policies referencing external data for de..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | trunk/src/chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_util.h
===================================================================
--- trunk/src/chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_util.h (revision 233050)
+++ trunk/src/chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_util.h (working copy)
@@ -1,47 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_TEST_UTIL_H_
-#define CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_TEST_UTIL_H_
-
-#include <string>
-
-#include "base/callback_forward.h"
-#include "base/memory/scoped_ptr.h"
-
-namespace base {
-class DictionaryValue;
-}
-
-namespace policy {
-
-class CloudPolicyCore;
-
-namespace test {
-
-// Passes |data| to |destination| and invokes |done_callback| to indicate that
-// the |data| has been retrieved.
-void ExternalDataFetchCallback(scoped_ptr<std::string>* destination,
- const base::Closure& done_callback,
- scoped_ptr<std::string> data);
-
-// Constructs a value that points a policy referencing external data at |url|
-// and sets the expected hash of the external data to that of |data|.
-scoped_ptr<base::DictionaryValue> ConstructExternalDataReference(
- const std::string& url,
- const std::string& data);
-
-// TODO(bartfab): Makes an arbitrary |policy| in |core| reference external data
-// as specified in |metadata|. This is only done because there are no policies
-// that reference external data yet. Once the first such policy is added, it
-// will be sufficient to set its value to |metadata| and this method should be
-// removed.
-void SetExternalDataReference(CloudPolicyCore* core,
- const std::string& policy,
- scoped_ptr<base::DictionaryValue> metadata);
-
-} // namespace test
-} // namespace policy
-
-#endif // CHROME_BROWSER_CHROMEOS_POLICY_CLOUD_EXTERNAL_DATA_MANAGER_BASE_TEST_UTIL_H_
« no previous file with comments | « no previous file | trunk/src/chrome/browser/chromeos/policy/cloud_external_data_manager_base_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698