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

Side by Side Diff: chrome/browser/extensions/api/media_galleries_private/media_galleries_watch_apitest.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 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) 2012 The Chromium Authors. All rights reserved. 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 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 // MediaGalleriesPrivate gallery watch API browser tests. 5 // MediaGalleriesPrivate gallery watch API browser tests.
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/extensions/extension_apitest.h" 12 #include "chrome/browser/extensions/extension_apitest.h"
13 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
14 #include "chrome/browser/extensions/extension_system.h"
15 #include "chrome/browser/extensions/extension_test_message_listener.h" 14 #include "chrome/browser/extensions/extension_test_message_listener.h"
16 #include "chrome/browser/media_galleries/media_galleries_test_util.h" 15 #include "chrome/browser/media_galleries/media_galleries_test_util.h"
17 #include "chrome/common/chrome_paths.h" 16 #include "chrome/common/chrome_paths.h"
18 #include "chrome/common/chrome_switches.h" 17 #include "chrome/common/chrome_switches.h"
19 #include "content/public/browser/render_view_host.h" 18 #include "content/public/browser/render_view_host.h"
19 #include "extensions/browser/extension_system.h"
20 #include "extensions/common/extension.h" 20 #include "extensions/common/extension.h"
21 21
22 namespace { 22 namespace {
23 23
24 // Id of test extension from 24 // Id of test extension from
25 // chrome/test/data/extensions/api_test/|kTestExtensionPath| 25 // chrome/test/data/extensions/api_test/|kTestExtensionPath|
26 const char kTestExtensionId[] = "gceegfkgibmgpfopknlcgleimclbknie"; 26 const char kTestExtensionId[] = "gceegfkgibmgpfopknlcgleimclbknie";
27 const char kTestExtensionPath[] = "media_galleries_private/gallerywatch"; 27 const char kTestExtensionPath[] = "media_galleries_private/gallerywatch";
28 28
29 #if !defined(OS_CHROMEOS) 29 #if !defined(OS_CHROMEOS)
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // Gallery watchers does not exists. 426 // Gallery watchers does not exists.
427 // chrome.mediaGalleriesPrivate.getAllGalleryWatch should return an empty 427 // chrome.mediaGalleriesPrivate.getAllGalleryWatch should return an empty
428 // list. 428 // list.
429 ExtensionTestMessageListener get_all_gallery_watch_finished( 429 ExtensionTestMessageListener get_all_gallery_watch_finished(
430 kGetAllGalleryWatchResultA, false /* no reply */); 430 kGetAllGalleryWatchResultA, false /* no reply */);
431 ExecuteCmdAndCheckReply(host, kGetAllWatchedGalleryIdsCmd, 431 ExecuteCmdAndCheckReply(host, kGetAllWatchedGalleryIdsCmd,
432 kGetAllGalleryWatchOK); 432 kGetAllGalleryWatchOK);
433 EXPECT_TRUE(get_all_gallery_watch_finished.WaitUntilSatisfied()); 433 EXPECT_TRUE(get_all_gallery_watch_finished.WaitUntilSatisfied());
434 } 434 }
435 #endif 435 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698