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

Side by Side Diff: chrome/browser/sync/test/integration/sync_extension_helper.h

Issue 7841007: Rename browser/sync/test/live_sync directory to browser/sync/test/integration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_SYNC_EXTENSION_HELPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_
6 #define CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_SYNC_EXTENSION_HELPER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/singleton.h" 16 #include "base/memory/singleton.h"
17 #include "chrome/common/extensions/extension.h" 17 #include "chrome/common/extensions/extension.h"
18 18
19 class Extension; 19 class Extension;
20 class LiveSyncTest;
21 class Profile; 20 class Profile;
21 class SyncTest;
22 22
23 class SyncExtensionHelper { 23 class SyncExtensionHelper {
24 public: 24 public:
25 // Singleton implementation. 25 // Singleton implementation.
26 static SyncExtensionHelper* GetInstance(); 26 static SyncExtensionHelper* GetInstance();
27 27
28 // Returns a generated extension ID for the given name. 28 // Returns a generated extension ID for the given name.
29 static std::string NameToId(const std::string& name); 29 static std::string NameToId(const std::string& name);
30 30
31 // Initializes the profiles in |test| and registers them with 31 // Initializes the profiles in |test| and registers them with
32 // internal data structures. 32 // internal data structures.
33 void SetupIfNecessary(LiveSyncTest* test); 33 void SetupIfNecessary(SyncTest* test);
34 34
35 // Installs the extension with the given name to |profile|. 35 // Installs the extension with the given name to |profile|.
36 void InstallExtension( 36 void InstallExtension(
37 Profile* profile, const std::string& name, Extension::Type type); 37 Profile* profile, const std::string& name, Extension::Type type);
38 38
39 // Uninstalls the extension with the given name from |profile|. 39 // Uninstalls the extension with the given name from |profile|.
40 void UninstallExtension(Profile* profile, const std::string& name); 40 void UninstallExtension(Profile* profile, const std::string& name);
41 41
42 // Returns a vector containing the names of all currently installed extensions 42 // Returns a vector containing the names of all currently installed extensions
43 // on |profile|. 43 // on |profile|.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 Profile* profile, const std::string& name, 110 Profile* profile, const std::string& name,
111 Extension::Type type) WARN_UNUSED_RESULT; 111 Extension::Type type) WARN_UNUSED_RESULT;
112 112
113 ProfileExtensionNameMap profile_extensions_; 113 ProfileExtensionNameMap profile_extensions_;
114 StringMap id_to_name_; 114 StringMap id_to_name_;
115 bool setup_completed_; 115 bool setup_completed_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(SyncExtensionHelper); 117 DISALLOW_COPY_AND_ASSIGN(SyncExtensionHelper);
118 }; 118 };
119 119
120 #endif // CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_SYNC_EXTENSION_HELPER_H_ 120 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_EXTENSION_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698