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

Side by Side Diff: mojo/shell/background/tests/test_catalog_store.h

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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
(Empty)
1 // Copyright 2016 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 MOJO_SHELL_BACKGROUND_TESTS_TEST_CATALOG_STORE_H_
6 #define MOJO_SHELL_BACKGROUND_TESTS_TEST_CATALOG_STORE_H_
7
8 #include <string>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "base/values.h"
12 #include "mojo/services/catalog/store.h"
13
14 namespace mojo {
15 namespace shell {
16
17 // ApplicationCatalogStore implementation that takes the ListValue to return
18 // as store.
19 class TestCatalogStore : public catalog::Store {
20 public:
21 explicit TestCatalogStore(scoped_ptr<base::ListValue> store);
22 ~TestCatalogStore() override;
23
24 bool get_store_called() const { return get_store_called_; }
25
26 // ApplicationCatalogStore:
27 const base::ListValue* GetStore() override;
28 void UpdateStore(scoped_ptr<base::ListValue> store) override;
29
30 private:
31 bool get_store_called_ = false;
32 scoped_ptr<base::ListValue> store_;
33
34 DISALLOW_COPY_AND_ASSIGN(TestCatalogStore);
35 };
36
37 // Returns a dictionary for an app with the specified name, display name and a
38 // permissive filter.
39 scoped_ptr<base::DictionaryValue> BuildPermissiveSerializedAppInfo(
40 const std::string& name,
41 const std::string& display_name);
42
43 } // namespace shell
44 } // namespace mojo
45
46 #endif // MOJO_SHELL_BACKGROUND_TESTS_TEST_CATALOG_STORE_H_
OLDNEW
« no previous file with comments | « mojo/shell/background/tests/test.mojom ('k') | mojo/shell/background/tests/test_catalog_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698